How can I get the old state and new state use javascript in calculated value
haizi wu (60●5●42●48)
| asked Nov 21 '12, 4:59 a.m.
edited Mar 21 '13, 12:28 p.m. by Ralph Schoon (63.4k●3●36●46)
How can I get the old state and new state use javascript in calculated value?
|
One answer
Ralph Schoon (63.4k●3●36●46)
| answered Nov 21 '12, 7:51 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
Hi Haizi,
the answer as of my knowledge today is, you can only access the current state value. See: https://jazz.net/wiki/bin/view/Main/AttributeCustomization#Accessing_built_in_attributes_of . There is no way to know the state or the action that ran. There is no trivial way to detect a state change in java script I am aware of. By the way, this question has been asked and answered in this forum several times in the past already. Answers should be relatively easy to find using a search engine or the forum or site search. Comments 1
Ralph Schoon
commented Mar 21 '13, 12:28 p.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
It is still not possible to get the ID of the old state. However, in 4.x you can access the action that was used in conditions. See https://jazz.net/wiki/bin/view/Main/AttributeCustomization#API_for_Javascript
since 4.0 M1 |
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.