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

Automatically record a date when state transitions

  

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

0 votes



2 answers

Permanent link

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 https://github.com/jazz-community/rtc-statushistory-presentation 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.

Finally:

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

https://rsjazz.wordpress.com/2012/11/27/resolve-parent-if-all-children-are-resolved-participant/
https://rsjazz.wordpress.com/2012/07/31/rtc-update-parent-duration-estimation-and-effort-participant/




0 votes


Permanent link

Hi Varun,

Have you investigated the reporting options in JRS?  You may wish to review : https://jazz.net/library/article/1540

Introducing Historical Trend Reporting in Jazz Reporting Service Report Builder 6.0.1

Scroll to

Appendix

Change and Configuration Trend Details

0 votes

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

Question asked: May 28 '18, 8:53 a.m.

Question was seen: 1,523 times

Last updated: May 29 '18, 4:55 a.m.

Confirmation Cancel Confirm