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

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

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

0 votes



One answer

Permanent link
Please consider reading https://jazz.net/library/article/634 I believe the aspect editor has some code that can help.

2 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
× 12,019

Question asked: Jun 15 '12, 1:14 a.m.

Question was seen: 5,311 times

Last updated: Jun 15 '12, 3:28 a.m.

Confirmation Cancel Confirm