It's all about the answers!

Ask a question

Count WI entries to specific state by Calculated Value


Amit Kravzov (1351616) | asked Mar 20 '12, 8:28 a.m.
Hi,

I would like to create a field calld Counter and display the number of times this work item has entered specific state.

Could any one assist with the syntax of the javascript to implement this?

It should act as following:
If (new_state="something") set Counter to Counter+1.

Thanks,
Amit.

2 answers



permanent link
Ralph Schoon (63.1k33646) | answered Apr 01 '12, 10:53 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
I am not sure this is going to be possible.

https://jazz.net/wiki/bin/view/Main/AttributeCustomization

mentions how to access the state, but does not mention how to distinguish between old and new state. So I think it is impossible to detect a state change. If I had to code this, I would create a precondition or a followup action, where it is possible to detect a state change.

permanent link
Amit Kravzov (1351616) | answered Mar 25 '12, 10:28 a.m.
Hi,

Any ideas?

Amit.

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.