OSLC REST API: How to set a "drop down list" attribute programmatically, for ex: "Severity", for a RTC WI.
String sStartOSLC = "<oslc_cm:ChangeRequest";
Using the above code I am able to create a workitem programmatically. The problem is only Text area fields like Title, Description are populated but it could not populate Drop down values like Severity,
|
One answer
You need to understand what these dropdown fields really are in order to update them correctly using OSLC. "Severity" is an enumeration, and FiledAgainst is a category, for both the value has to be the full resource URL. You'd better do a GET first and examine the response body carefully before doing a PUT or POST. Go through the tutorial first and always refer back to the wiki.
https://jazz.net/library/article/1001 https://jazz.net/wiki/bin/view/Main/WorkItemAPIsForOSLCCM20 |
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.