Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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

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


0 votes


Accepted answer

Permanent link

 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

0 votes

Comments

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 log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,937
× 6,121

Question asked: Apr 24 '17, 1:28 a.m.

Question was seen: 3,009 times

Last updated: Apr 24 '17, 2:31 a.m.

Confirmation Cancel Confirm