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

Set the attribute value based on the work item state

 Hello, 

We created a custom attribute in the Defect work item and we want this attribute to be updated every time a defect state is changed. 

How can we achieved this? is their any pre condition we can apply to automatically update the custom attribute field. 

Suggestions are most welcome. 

0 votes



One answer

Permanent link
No, there is no out of the box precondition for this. It is not possible to do this with preconditions as the API interface assumes that a precondition does not modify the triggering element it works on.

You can create a follow up action or participant to do this. It can detect state changes and force an additional save operation. See examples here: https://rsjazz.wordpress.com/?s=participants

Theoretically you could probably use a JavaScript based value provider, however it is so hard to detect a state change there, that you would need additional hidden attributes and I would not suggest this path.

To learn about extending follow the suggested links in the posts https://rsjazz.wordpress.com/?s=participants

0 votes

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

Question asked: Nov 02 '16, 11:43 a.m.

Question was seen: 1,505 times

Last updated: Nov 02 '16, 12:11 p.m.

Confirmation Cancel Confirm