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

Help me! 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



2 answers

Permanent link

The standard OSLC way of doing this is to look at the OSLC resource shape for the artifact or artifact type. For enumerated properties, the OSLC property referenced in that shape would specify oslc:allowedValue statement(s) or an oslc:allowedValues statement. The URI of an enumeration member should be fetchable and provide the name (dcterms:title or rdfs:label) of the member. See https://docs.oasis-open-projects.org/oslc-op/core/v3.0/ps02/resource-shape.html.

0 votes


Permanent link

 The reportable REST API provides this information and is easier to use: 


See https://jazz.net/wiki/bin/view/Deployment/CLMProductAPILanding find the section REPORTING for the existing reportable REST APIs. 

0 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

Question asked: Jul 14 '21, 5:08 a.m.

Question was seen: 896 times

Last updated: Jul 14 '21, 9:13 a.m.

Confirmation Cancel Confirm