Not able to find values of attributes of work items in curl command
Hi Team,
I am using Postman tool as Rest API client to create Work Items externally. I am able to create al work item types successfully using the same, but when I want to change the values of the attributes at that time I am not able to find the same for changing. Only summary attributes is there for change
How can I change other attributes please guide.
I have curl command which is copied as a bash. I have filled all the attribute but able to find only summary attribute. How can I change other values.{where to find other attributes values}
Accepted answer
There is no information at all in this mail, which could be used to help answering this. You could do better.
So here what I think based on the information given. You should follow the links we have provided you already in other questions, especially about OSLC and read the information. OSLC is the protocol and a REST API and it is explained in the standards documents: https://www.oasis-open.org/standards/ also see https://open-services.net/ for a simplified explanation.
The creation factory document explains which attributes are supported, and links to the available values.
The work item you get contains links to the values for all the attributes, matching the information in the creation factory.
Especially, you will only be able to see values for primitive types (String, integer, number, data) directly in the work item, when using the OSLC API. All other attribute types are complex items where you only see the link to the value. This is how OSLC works. So for all complex attributes, you have to follow the links in the work item body to get the values. Also see the section in the Landing page below.
There are other APIs such as the reportable REST API that provide data in a different way. Keep in mind that the reportable REST API is read only.
You can find a link to that API in here: https://jazz.net/wiki/bin/view/Deployment/CLMProductAPILanding
Comments
David Honey
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER Jul 26 '21, 12:50 p.m.Your question is like: I'm trying to change some data (but won't tell you what), using some curl command (but won't tell you the command) to make some change (but won't say what data is being sent), and it doesn't work (but won't tell you how it failed, or what error responses I received).
Seriously, if you want people to help you, tell them EXACTLY what REST operations you are performing, the headers, the body of any PUT/POST request, what response you got (headers and body). Details! Details! Details!
1 vote