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

How to get the display names of custom workflow states

I want to generate a document using RPE that contains the states of RQM test cases.

Custom testcase workflows are used.
RQM's REST API returns values like "com.ibm.rqm.process.testcase.workflow.state.s1". 
Probably other values will be s2, s3 etc.
I need the corresponding display name like "Externally approved".
Are these values unique or do they reoccur in other custom workflows?
If yes, I could use a fix mapping between the internal values and displayed names.
Otherwise I would need to fetch the display names at runtime, but how?
  

0 votes


Accepted answer

Permanent link

 You need to do a GET request on feed/entry/content/testcase/state/resource which returns the state titles (ex. Externally approved) along with their identifiers (ex. com.ibm.rqm.process.testcase.workflow.state.s1). You can store these titles and identifiers in a map (_stateMap) and then print the value corresponding to the feed/entry/content/testcase/state/_value (_stateMap[_value]).

Andreas Hensel selected this answer as the correct answer

0 votes

Comments

Thank you! 

<comment deleted>

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,030
× 332

Question asked: Jan 04 '21, 2:04 p.m.

Question was seen: 1,060 times

Last updated: Jan 07 '21, 4:15 a.m.

Confirmation Cancel Confirm