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?
|
2 answers
David Honey (1.8k●1●7)
| answered Jul 14 '21, 8:56 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER 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.
|
Ralph Schoon (63.1k●3●36●46)
| answered Jul 14 '21, 9:13 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER 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.
|
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.