How to get mapping of Display Names (labels) of fields/attributes to back-end attribute Id for any workitems using OSLC?
Hi All,
How to get mapping of Display Names (labels) of fields/attributes to back-end attribute Id for any workitem like Defect, issue etc using OSLC/reportable rest APIs?
E.g.
Priority (UI Label) --> rtc_ext:priority (OSLC Element Tag Name)
Please let me know if you want me to elaborate More.
Thanks
Rishi
2 answers
Just use the "resourceShape". Search it on this forum and you can find many posts, such as this one.
https://jazz.net/forum/questions/173996/how-to-retrieve-allowed-values-for-custom-enumeration-attribute-using-rtc-rest-apis
Here is an example provided by Rafik Jaouani:
Note this is for custom attributes, it doesn't seem that you can get the built-in attributes this way, only customer attributes.
Example: https://jazz.net/jazz/rpt/repository/workitem?fields=workitem/projectArea/(name|extensionMetadata/(key|displayName|type|isEnumeration|workItemType/name
Comments
Rishi Sharma
May 15 '17, 10:33 a.m.@gdang @rschoon @kszczech @mabu - Please see if you can help