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

Count WI entries to specific state by Calculated Value

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.

0 votes



2 answers

Permanent link
Hi,

Any ideas?

Amit.

0 votes


Permanent link
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.

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

Question asked: Mar 20 '12, 8:28 a.m.

Question was seen: 5,331 times

Last updated: Mar 20 '12, 8:28 a.m.

Confirmation Cancel Confirm