I have spent the past few days trying to get Jira to create workflows via the REST API 3. I followed the documentation very carefully and ensured the payload i am sending is valid.
I seem to get errors of "Status name is not unique". Not only is this with my payload, this is also with the payload that the documentation provides.
The bug i see here is that the bulk create workflows also attempts to create the statuses you provide at the top level of the payload. This would be fine, if the workflows didn't reference the statuses via statusReference, that from what i can tell, can only be provided to the workflow bulk create request.
It means that any workflows expecting to use the Jira default statuses cannot be created the the API because these statuses already exist.
I was going to provide the examples of the payloads im sending, however, starting with a blank sandbox and trying to execute the example code in the documentation is enough to see this error. The documentation I followed is here:
I have an open support request, but can I please confirm that other people are experiencing the same issue before reporting this as a bug?
Thanks
For anyone else coming here with the same problem - I have confirmed with a support representative this is in fact a bug with the experimental "Bulk Create Workflow" API call.
I reverted to using the deprecated "Create Workflow" call and was able to create workflows with the Jira API.
It has been reported to the appropriate team
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.