Details
-
Bug
-
Status: To Do
-
Medium
-
Resolution: Unresolved
-
7.12.0, 7.13.0
-
None
-
None
-
2.1
Description
The Behaviour's Except/When Condition does not apply correctly
e.g: Adding a Field with Read Only = true, and adding the Condition: Except - Workflow Step: In Progress
Steps to reproduce
- Add a field to all Transition Screens (e.g. Description)
- Create Behaviour, adding the field
- Select Read Only
- Add a Condition: Except - Workflow Step: In Progress
Expected Behaviour
Read Only is applied to the Description field on all Issue Screens, other than when on the In Progress Transition Screen.
Actual Behaviour
Read Only is applied to the Description field on all Issue Screens
Workaround
Hard code the Behaviour desired.
E.g. for this specific example
def field = getFieldByName('Description') field.setReadOnly(true) if (actionName == 'In progress'){ field.setReadOnly(false) }