It's all about the answers!

Ask a question

Find xml tag name in ChangeRequest by lable name


ronen r (2152) | asked Nov 22 '09, 4:16 a.m.
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.

for example:
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



permanent link
Patrick Streule (4.9k21) | answered Nov 24 '09, 6:23 a.m.
JAZZ DEVELOPER
Hi
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.

for example:
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?

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


Register or 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.