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
Hello @David Whitlock
In the workflow for Subtasks, are there any Conditions or Validators specified for that transition?
Thanks for the reply. There is one validator but all it does is check to see if the task has subtasks and cancels those as well
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Can you provide a screen image of the workflow used for subtasks?
Can you provide a screen image of the Validator details for the specified transition?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.