item status loops
|
Accepted answer
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
Comments
Frank Mueller
commented Jul 26, 6:25 a.m.
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.
Ralph Schoon
commented Jul 26, 9:39 a.m.
| edited Jul 26, 9:42 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
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.
The Plain Java Client Libraries API allows to iterate the historical states and check the values.
Frank Mueller
commented Jul 30, 9:49 a.m.
Thank you @Ralph. That sounds sufficient. |
One other answer
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.
|
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.