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

where can I find the example that get a attribute's previous value and current value on the workitem?

Hi. I want to get a attribute's previous value and current value on the workitem. Where Can I find this example or API?Thank you!

0 votes



2 answers

Permanent link
Work Items are IAuditables and they have up to two 'predecessor states'. You can use the Java API to look at the predecessor state and compare the values e.g.of an attribute.

In a participant, you get the new state and (if exists) the old state of a work item. Thus you are able to compare the attribute value and act on it. See https://rsjazz.wordpress.com/?s=participant for examples. This would be a server extension.

0 votes


Permanent link
You cannot get its previous value except from the server side plugin in Java.
there is some data saved in history, but I haven't looked for a way to navigate the history.

0 votes

Comments

In fact. I want to  realize this function that if one attribute's value changed, the 'category' attribute automatically change the value to 'Unassigne', How can I realize the function through the java plugin?

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,926

Question asked: Apr 15 '14, 12:15 a.m.

Question was seen: 5,278 times

Last updated: Apr 15 '14, 2:52 a.m.

Confirmation Cancel Confirm