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.
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.
Accepted answer
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.
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.