We recommend reviewing what is submitted before posting, in case your idea has already been submitted by another community member. If it has been submitted, vote for that existing feature request (by clicking the up arrow) to increase its opportunity of being added to Cireson solutions.
For more information around feature requests in the Cireson Community click here.
Comments
So having said all of that, did you mean something different (e.g. a C# API like the Microsoft SDK)?
Hey Nick,
Any chance you could provide example JSON with regards to how we can use '/api/V3/Projection/CreateProjectionByTemplate' with '/api/V3/Projection/Commit' in order to create a work new item.
The API doco is a bit light on as far as this is concerned.
Cheers,
Adrian
Ahh figured it out.
Was actually pretty straight forward in the end.
For those that are interested..
1. Use "api/V3/Projection/CreateProjectionByTemplate?id={id}&createdById={createdById}"
Where Id = the GUID of the Template ID of the Work Item Type you want to create.
Where createdById = the GUID of the User who is creating the Work Item.
This will create a temporary place holder Work Item based on the specified template.
The API will return a JSON object containing the results of the new work Item.
2. Use "/api/V3/Projection/Commit" to save required information to the new work item.
The comment of the API must be called with a body containing the "original" data (the results from CreateProjectionByTemplate) and also the "current" data (the results from CreateProjectionByTemplate + Additional Changes Required). The API Commit body must look something like this..
{ "formJson" : { "current" : { <Place JSON results from 'CreateProjectionByTemplate' API call + Additional Changes Required.> }, "original" : { <Place JSON results from 'CreateProjectionByTemplate' API call> } } }
Hope this helps a few people out.
Regards,
Adrian