location
link in the response to determine the status of the task and use Get task to obtain updates.curl --location --request POST '/rest/api/3/workflowscheme//draft/publish' \
--header 'Content-Type: application/json' \
--data-raw '{
"statusMappings": [
{
"issueTypeId": "10001",
"newStatusId": "1",
"statusId": "3"
},
{
"issueTypeId": "10001",
"newStatusId": "2",
"statusId": "2"
},
{
"issueTypeId": "10002",
"newStatusId": "10003",
"statusId": "10005"
},
{
"issueTypeId": "10003",
"newStatusId": "1",
"statusId": "4"
}
]
}'
{
"description": "string",
"elapsedRuntime": 0,
"finished": 0,
"id": "string",
"lastUpdate": 0,
"message": "string",
"progress": 0,
"result": null,
"self": "http://example.com",
"started": 0,
"status": "ENQUEUED",
"submitted": 0,
"submittedBy": 0
}