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

How to calculate a value on state change?

 Hi all,


I would like to change some specific attributes based on a state change. 

My problem is that while I can change attributes based on the change of other attributes through calculated values and cannot figure out how to make it dependent on the state change. If I write a script and link it the attribute to be changed and set status attribute as dependencies it doesn't work. Obviously as long as I haven't saved the item, the state hasn't changed.

Anyone with hints how I can achieve what I am looking for?

Thanks - franca

0 votes



One answer

Permanent link
This has been asked and answered multiple times over the years.
You can not really detect the state change in attribute customization, except you can detect the selected action in conditions.

I know that users have tried to store the state in hidden attributes and used that to detect state changes. I consider that not a great solution. An advisor or follow up action (Java Extension) might be needed here.

1 vote

Comments

Thanks! 


Java Extension isn't a road for me to follow unfortunately. But for your comment on "detect the selected action" - what field is the selection action stored at/ how to a see that in the script?

Read my answer carefully you can detect that only in conditions.

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
× 6,121
× 17

Question asked: Jan 15 '20, 2:14 a.m.

Question was seen: 1,632 times

Last updated: Jan 15 '20, 3:25 a.m.

Confirmation Cancel Confirm