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

How do I find enumerations/Category rdf:resource via OSLC?

Hello,

I'm trying to create batch processing of WI creation and modification. I'm aware of import tools, but this is custom application so to speak.

To be able to create WI, we need to know rdf:resource URL for enumerations and Category like:

For enumerations (e.g. priority)
<oslc_cm:priority rdf:resource="https://rtc:9443/jazz/oslc/enumerations/_gasc4Ju-Ed6cerS9lb5AWw/priority/priority.literal.l01"/>

For Category (e.g. filedAgainst)
<rtc_cm:filedAgainst rdf:resource="https://rtc:9443/jazz/resource/itemOid/com.ibm.team.workitem.Category/_hckJkpu-Ed6cerS9lb5AWw"/>

Suppose, user would like to create the following table

Priority FiledAgainst Summary Description
-------- -------------- ---------- --------------
High CompA SummaryA DescriptionA
Normal CompB SummaryB DescriptionB

Utility needs to convert each line into .json or .xml representation of WI to create, and then post it to Jazz server. Simple text is OK. We can send it as is (with small modification like change CRLF to </BR>). However, we need to know in advance about rdf:resource for enumerations and Category. How do I retrieve these information through OSLC only ?

Thanks !

0 votes



One answer

Permanent link
Amano-san,

I've been having the same issue, I can make it work but I can't seem to find a way to discover what enumerations are present, so this method requires that you have the id of the enumeration and can find the ItemID of the project area.

https://<server>/jazz/oslc/enumerations/<project>/<enumeration>.

So something like this:

https://server.ratl.swg.usma.ibm.com:9445/jazz/oslc/enumerations/_v-iPIIO2Ed-ec4_ZoGHE4w/severity.xml

Gets you, which sounds like what you need to get started:
http://pastebin.com/A8xcp43X

-Sean

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,940

Question asked: Jun 29 '10, 10:04 p.m.

Question was seen: 8,046 times

Last updated: Jun 29 '10, 10:04 p.m.

Confirmation Cancel Confirm