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

Using CSharp to create a work item in RTC, how do I set the priority?

I'm using a NameValueCollection to pass to the UploadValues for posting data to RTC. What is the format for setting the priority? Here's an example of what I tried:

NameValueCollection data = new NameValueCollection {

{ "dc:type", _sWIType }, //e.g. Task

{ "dc:title", _sTitle }, //summary

{ "dc:description", _sComment }, //Description

{ "oslc_cm:Priority", "rdf:resource=\"https://[server]/ccm/oslc/enumerations/[ID]/priority/priority.literal.l02\"" }

};

This creates the task, but no matter what I put in for the priority, it comes out as priority.literal.l01 (Unassigned). I've tried different formats for the rdf:resource string, to no avail.

0 votes



One answer

Permanent link

I figured it out. This worked:

{ "oslc_cm:priority", "https://[server]/ccm/oslc/enumerations/[ID]/priority/priority.literal.l02" }

1 vote

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

Question asked: Nov 20 '12, 10:51 a.m.

Question was seen: 5,311 times

Last updated: Nov 21 '12, 3:01 p.m.

Confirmation Cancel Confirm