Find xml tag name in ChangeRequest by lable name
I'm querying workitems.xml file.
I need to get the XML tag name and kind of a field(presentation) in work item. the field can also be a custom attribute type. I have: 1.custom attribute name "MyAtt". 2.In my project work item I add a presentation of attribute="Myatt", Kind=HTML, Lable="Mypresentation". I need to create a method that get the lable "Mypresentation" and return the XML tag name and kind of "Mypresentation" field. => name="rtc_cm:Myatt" AND kind=HTML For doing this method I need to get the information on the work item presentations and on the work item custom attributes. where can I find this information? Thanks |
One answer
Hi The editor presentation information is currently not exposed yet in the OSLC REST API. You can get the attributes, however. E.g.: https://localhost:9443/jazz/oslc/attributes/workitem.xml There you find the information about the element name in the work item representation, and also the label. Note that metadata information will only be standardized in OSLC-CM 2.0. If necessary, you can resort to the internal APIs that we use in the Web UI for the editor presentation information: https://localhost:9443/jazz/service/com.ibm.team.workitem.common.internal.rest.IWorkItemRestService/editorPresentation?itemId=_k30R8MiAEd6Z3YRZh93mbA&projectAreaItemId=_dwET4H0YEd6xQ8_tWGUF5g -- Regards, Patrick Jazz Work Item Team |
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.