It's all about the answers!

Ask a question

Attribute Customization : Script based condition : State change of a workitem is not recognized dynamically by the script.


Jazzuser user (681050) | asked Apr 24 '17, 1:28 a.m.

Hello All,

We have a use case where in, a field should be mandatory based on 2 conditions(based on severity and state). We have implemented a script based condition. script works fine only when severity is considered.

Our issue is with the State of the workitem.

Script is not recognizing the state change dynamically. it is considering the last saved state.
(for e.g: In Progress --> Closed, the script still considers the previous state - In Progress, though we have changed to Closed.) we need to trigger the script on closed state.

Why is state not getting recognized dynamically, script is still fetching the last saved state ?

Kindly assist on this.

Thanks


Accepted answer


permanent link
Ralph Schoon (63.3k33646) | answered Apr 24 '17, 2:27 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

 This works as designed - the state of the work item only changes during the save process. The UI only shows the target state, that state is not yet set however. You have access to the current state and the action that is selected, the action tells you the pending state change.


Jazzuser user selected this answer as the correct answer

Comments
Jazzuser user commented Apr 24 '17, 2:31 a.m.

Thanks for the reply Ralph. I just wanted to confirm this behaviour. Currently am using action to validate in the script.

Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.