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

Creating a new work item (Program Epic) API

I am trying to find the API that involves creating a new work item (specifically a program epic).


However, in regards to the work item representation ("create-simple.json"), is there documentation on what the fields are? Like setting the type of work item, summary, description of work item, electrical architecture, ...?

I couldn't find specific documentation that details this.

Additionally, is it required for the POST request to contain binary data from a .json file or can we just do a POST request with direct JSON data?

0 votes


Accepted answer

Permanent link
Please follow https://jazz.net/wiki/bin/view/Main/WorkItemAPIsForOSLCCM20 instead. It links back to the link you are using and the discovery section in the old one is nicer. You might also want to search for the OSLC workshop, starting here: https://jazz.net/wiki/bin/view/Deployment/CLMProductAPILanding

The headers are very important and mostly define what you get and how it is represented.

Quick summary:

  • If you discover the services, there is a link to a resource shape for each work item type.  This link proivdes the data (or links to it) for the available attributes and the allowed values.
  • You POST the JSON data in the body, usually UTF-8 encoded
To get all the data to actually do a POST using complex attributes requires about 7 or more calls. I would suggest you use a test project area and switch off the required attributes for your first steps. As far as I know, you can not get the required attributes, you need to know them.
Neddless to say, you should get a work item using its URI first to understand how the data looks like.
Jeffrey Ha selected this answer as the correct answer

0 votes

Comments

You might want to use RESTCLIENT or POSTMAN for your exploration. https://rsjazz.wordpress.com/2019/05/13/using-a-rest-client-to-authenticate-to-elm-clm-applications/ could be useful.

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

Question asked: Jun 03 '21, 7:49 a.m.

Question was seen: 400 times

Last updated: Jun 03 '21, 11:10 a.m.

Confirmation Cancel Confirm