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

Assign date Systematically based on State change

 Hi All,

I have created attribute  'Start Date' in Work item, That attribute is empty and read only in initial state of Work item.

Now the moment owner changes state of work item from 'new' to 'In progress', Start Date should take System Date automatically.

How is it possible to do? I tried with Calculated values but it didn't worked for me.

Thanks in Advance!

0 votes



One answer

Permanent link
The best way to address this is to write a so called Participant - a server side extension of a followup action.
You can find an example and training in the Extensions workshop here: https://jazz.net/library/article/1000

Please note you have to run the workshop on 4.0. It does not run on 4.0.1. There is also the same workshop for older versions in the library.

The code in the workshop detects a state change and shows how to act on it. You can find more examples around the APIs in my Blog: http://rsjazz.wordpress.com/ . Please note, you should not use an Advisor (pre condition) for the reasons described in this post: http://rsjazz.wordpress.com/2012/12/14/do-not-modify-the-triggering-element-in-an-operationadvisor/
 

0 votes

Comments

You could potentially use JavaScript based attribute-customization as described here https://jazz.net/wiki/bin/view/Main/AttributeCustomization the issue as discussed in this forum is that a calculated value based on the state of the work item can only trigger on the state attribute. Otherwise it would be impossible to determine if a state change happened. See https://jazz.net/library/article/1093 for more information.

I would still prefer a participant.

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
× 152

Question asked: Feb 06 '13, 5:01 a.m.

Question was seen: 5,544 times

Last updated: Apr 02 '13, 4:37 a.m.

Confirmation Cancel Confirm