It's all about the answers!

Ask a question

How to get StateId / ActionId from its State name / Action name?


Muthukumar C (32712833) | asked Jun 15 '12, 1:14 a.m.
Hi all,

I want to perform some action based on the State of the Work item. For every state, I will perform some code. But I don't want to hard code the State id / Action Id in all my conditions.
I know the workflow name, State name and Action name. With this information, How can I retrieve ID?
I am looking for something like
String WFStateID = getWorkFlowStateID(ProjectArea, WorkflowNameIdentifier, StateName);
String WFActionID = getWorkFlowStateID(ProjectArea, WorkflowNameIdentifier, ActionName);

Any other workaround also welcome...

Thanks in advance

Muthukumar.C

One answer



permanent link
Ralph Schoon (63.5k33646) | answered Jun 15 '12, 3:28 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
Please consider reading https://jazz.net/library/article/634 I believe the aspect editor has some code that can help.

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.