While creating launch task, duplicate task got created. While trying to create the issue, an error message is popping but gets created anyway but as duplicates.
The error message is as follows:
Error creating issue: Cant transition workflow instance#319029. Current state is 0, requested state is 1.
How can this be rectified?
Thanks!
That suggests you have a (broken) post-function or listener creating extra issues. Start with a look at the workflow - what post functions does the "create" transition have?
I have added some postfunctions to create sub-tasks. Apart from that there is a postfunction to fast track the issue to the next status. Could that be the problem?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes, it probably is. You'll need to explain your exact setup and what add-ons you are using.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This is what we are using:
Script workflow function : Fast-track transition an issue : If the condition is met the action 131 Pre-launch Preparation will be applied.
Note that this should go after the Fire Event function.
There are no conditions specified inside the post function.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Which addon is it coming from?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I am not aware if it's an add on. It was added using the script post function - Fast track transition, so i assumed it is a built in script.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Scripts are not native to JIRA, they're done by add-ons. It could be one of several - could you confirm which one it is by looking in the "Admin -> Manage add-ons -> User installed" - I'm guessing you'll see "Script Runner" in there, but need to be sure.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes, Nic. You're right. It works using the "Script Runner" add-on.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Sorry for the delay, didn't realise you'd responded.
Could you list all of the post functions you have on the transition where this is being done? A screenshot might be easiest in this case, as we'll want to look at ordering as well as the list of things being done.
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.