Hi!
I’m starting with the REST API for JSD Server. So far, all GETs are working, but my first attempt to a POST failed with this message. However, I want to understand what am I doing incorrectly… so…
I have a Request in OPEN state. Next state should be InProgress… If I right click on the “InProgress” button on the GUI and copy the link, this is it:
http://jsd…:8080/secure/WorkflowUIDispatcher.jspa?id=10202&action=21&atl_token=…
If I understand correctly action=21 is the transition I want to do.
Moreover, if I GET /issue I can see the first possible transition is precisely id:21:
$ curl -stderr -u apiuser:*** -G …/rest/api/2/issue/10202/transitions | python3 -mjson.tool
{
“expand”: “transitions”,
“transitions”: [
{
“id”: “21”,
“name”: “Initiate Progress”,
…
Now, the POST method fails with this message:
$ curl -stderr -u Llagos:*** -H “Content-Type:application/json” -H “X-ExperimentalApi:true” -d ‘{“id”:“21”}’ -X POST …/rest/servicedeskapi/request/10202/transition | python3 -mjson.tool
{
“errorMessage”: “You cannot make this transaction”,
“i18nErrorMessage”: {
“i18nKey”: “sd.customer.transition.error.transition.unavailable”,
“parameters”:
}
}
So, what am I doing wrong here? or understanding incorrectly? This seems to be pretty simple and straightforward…
API versions are Jira 7.6.1 & JSD 3.9.8
Thanks a lot,