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