It's all about the answers!

Ask a question

REST API to create Work Item in RTC

K P (211) | asked Jun 16, 3:39 a.m.

 Hi team,

I am using Postman as a Rest Client and I want to create Work Item in RTC using Rest API. Please help for the same

2 answers

permanent link
Bharath Rao (8207) | answered Jun 16, 5:01 a.m.


I believe the links here answers your question:

permanent link
Ralph Schoon (58.5k23642) | answered Jun 16, 9:35 a.m.

From there you get what you need. The sequence looks like this:

Catalog (Project Areas)
Request GET
Project Area service descriptor for one project area
Get creation Factory for the type
Resource Shape for the work item type of one project area
Request GET
Resource Shape defines available attributes and the allowed values for attributes
Get details for complex values (Category, Target, Enumerations) following the links
Example Category “unassigned” see "dcterms:title": "Unassigned"
Request GET https: //

Compose the Request body with the attributes needed for the work item and post
Request POST
{"dcterms:title": "Work Item Created from JSON in Python.", "dcterms:description": "This is a work item linking to <a href=\"\"></a>.", "rtc_cm:filedAgainst": {"rdf:resource": "", "rdf:type": [{"rdf:resource": ""}]}}

Your answer

Register or to post your answer.