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?
|
Accepted answer
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
|
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.