Configuration problem when one behaviour has two fields with the same name (scriptrunner 3.0.9 or superior)

Description

*This issue has moved*

This issue has been moved permanently to Adaptavist's Product Support JIRA instance.

All existing users of this instance should have the same username on our Product Support instance. However, you will very likely need to click on the
Can't access your account link in order to reset to a new password.

Hi.
We have the "Component/s" field two times in one behaviour:
-The first time the component field is configured, it's Required in the step "En curso"
-The second time the component field is configured, it's Readonly in the step "Entregado",
If we want to add the component field is readonly at a new step (for example "En Planificacion") , we put the new step "En Planficacion" at the second configuration (components--> Readoly) But behaviour always add it to the first configuration (components--> Required)

It doesn't work since scriptrunner 3.0.9, but works correctly in scriptrunner 3.0.7

We suspect it´s related to incorrect $kount varible value provided by AddCondition class.

Please, could you provide us a fix or the source code instead?

Thank you
Regards

Environment

JIRA 6.4.3

Activity

Show:
Jamie Echlin
October 4, 2015, 12:35 PM

I would just write it in code using a server-side validator. Depending on the current status or transition name, make the field either optional or required or whatever.

I am more likely to move the UI aspect to this and attempt to fix to be honest. Using code is much more flexible and powerful.

Heshan Manamperi
October 2, 2015, 7:38 AM

Do you have ETA for a fix? Need a bug fixed version or workaround. This is a critical bug.

Miguel Angel Hernandez
September 2, 2015, 10:40 AM

Greetings Alejo.
Do you have any update about this issue?

AlejoA
August 14, 2015, 2:58 PM

Hi Miguel Angel,

I've been able to reproduce the issue in one of our instances and it definitely looks like whatever change you perform in the second field will go to the one above.

We'll investigate this further and we'll come back to you with more info.

Miguel Angel Hernandez
August 13, 2015, 9:30 AM

We have tested the last version of Scriptrunner (3.1.4) and the problem persists.

Your pinned fields
Click on the next to a field label to start pinning.

Assignee

Jamie Echlin

Reporter

Miguel Angel Hernandez

Internal Complexity

Unknown

Internal Value

Unknown