Hello,
I am trying to transition subtasks to the Cancel Sub-Task transition in the API using the endpoint rest/api/2/issue/GS-34233/transitions
the body I post is {"update": {"comment": [{"add": {"body": "Resolved via automated process."}}]},"transition": {"id": "51"},"fields": {"resolution": {"name": "Canceled"}}}
however when I execute the endpoint I get the following error:
400
{"errorMessages":["It seems that you have tried to perform a workflow operation (Cancel Sub-Task) that is not valid for the current state of this issue (GS-34233). The likely cause is that somebody has changed the issue recently, please look at the issue history for details."],"errors":{}}
I am confused by this error, If I manually transition this to Cancel, it seems to work fine. Any idea why I may be getting this error?
Thanks