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

item status loops

How can I count work item status loops?


0 votes


Accepted answer

Permanent link

You're going to have to explain that a bit more I'm afraid - what do you mean? Are you talking about the number of times a work item goes back and forth through a workflow?

Frank Mueller selected this answer as the correct answer

0 votes

Comments

Yes, you are right. I am talking about the number of times an EWM work item goes back and forth through a workflow. I need a guideline or piece of script on how to integrate this into my EWM Process Configuration Source. I know how to refer on the work item status. But how to trigger the increase of a value of a capturing attribute I am not sure. Thank you in advance.

There is no simple way I am aware of to implement this in the JavaScript attribute customization. The reason is, you do not know about the state transition, you only know about the current state.

You can try to have an old state attribute that has a state stored and a second that gets set with the current state. If the current state and the old state is different, you can try to set the old state to the current state. Maybe you can detect a state change that way and increase another attribute.

Absolute ugly and should not be done.

The Plain Java Client Libraries API allows to iterate the historical states and check the values.
A work item save participant/follow up action would be able to detect state changes and increase work item attribute values.

https://github.com/jazz-community/rtc-statushistory-presentation would be a potential approach As well.

Thank you @Ralph. That sounds sufficient.


One other answer

Permanent link
This is not easily done in the client as JavaScript but is pretty simple to do in Report Builder, using the Work Item Status History. This gives you access to a timestamped record for every time a work item changed state, so will let you count how many times it went through each state.

My suggestion is that, instead of trying to report on it on the work item in real time, put up a widget on the dashboard that shows the information.

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
× 6,121

Question asked: Jul 24, 7:51 a.m.

Question was seen: 499 times

Last updated: Jul 30, 9:49 a.m.

Confirmation Cancel Confirm