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 !
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 !
One answer
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
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