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

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.

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

0 votes



One answer

Permanent link
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

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
× 10,947

Question asked: Nov 22 '09, 4:16 a.m.

Question was seen: 4,266 times

Last updated: Nov 22 '09, 4:16 a.m.

Confirmation Cancel Confirm