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

Setting timestamp only on state transition but not on simple save

https://jazz.net/forum/questions/77931/attribute-configuration-calculated-timestamp-being-set-unexpectantly answered part of my question but not totally.

Let's say I have a WI and I want to record the last Closed date. So if I have a WI that is "In Progress" and I close it, then the last closed date is set. Now I go in and change the comment, then I don't want the last closed date to change. This was answered previously.

However, say I can reopen the WI, now when I close it again, I want the last closed date to change.

BTW, I do not want the last close date to change when I reopen the WI.

So to summarise:
I want a timestamp on a WI to change when a transition to a certain state occurs. I do not want the timestamp to change when I modify some other attribute when WI already in that state.
Once set, I do not want the timestamp to change unless there is a transition.

0 votes


Accepted answer

Permanent link
you could write an extension to do that. It will have to be a Java extension (follwup action), as the Javascript extensions cannot see the prior workitem state.


Lewis Tsao selected this answer as the correct answer

0 votes

Comments

any chance of "enhancing" the javascript extensions?
Searching through the forum, it appears that there have been a fair amount of interest in having this capability for all extensions.
This is already possible for "condition".
It would also be nice, for state transitions, if the old state is also available.

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,167
× 19

Question asked: Jun 17 '13, 6:37 a.m.

Question was seen: 4,694 times

Last updated: Jun 19 '13, 5:32 a.m.

Confirmation Cancel Confirm