It's all about the answers!

Ask a question

Automatically record a date when state transitions

varun poshala (117) | asked May 28 '18, 8:53 a.m.


I would like to some how record the timestamp of when a work item moves from one particular state to other. This is actually to track cycle time, and we know that it logs it down in the history but we need populate the those dates in the custom attributes for metrics

2 answers

permanent link
Matt Muller (59813674) | answered May 29 '18, 4:55 a.m.

Hi Varun,

Have you investigated the reporting options in JRS?  You may wish to review :

Introducing Historical Trend Reporting in Jazz Reporting Service Report Builder 6.0.1

Scroll to


Change and Configuration Trend Details

permanent link
Ralph Schoon (63.3k33646) | answered May 29 '18, 3:55 a.m.
edited May 29 '18, 3:55 a.m.

I don't think this is advisable for many reasons, one being that maintaining the workflow stated becomes tied to your customization. This should be provided and stored in the data warehouse if at all possible.
Another approach is which gets the information out of the history. You could also run some automated tool that calculates the information (e.g. nightly) and stores it in another database.


There is no good way to implement something like this using the JavaScript attribute customization API, because detecting the state change is so hard. You could use a follow up action on work item save. This has still issues because the artificial second save can collide with the user UI activities. You have been warned.

Here examples how to update work items in the server API

Your answer

Register or 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.