Duplicate sub-tasks are getting created

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!

1 answer

0 vote

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?

Yes, it probably is.  You'll need to explain your exact setup and what add-ons you are using.

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.

Which addon is it coming from?

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.

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.

Yes, Nic. You're right. It works using the "Script Runner" add-on.

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.

 

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Wednesday in Jira

Join our webinar: How 1B+ feature flag events helped us build the new Jira

Every time you release software, there's a bit of risk – that there's a bug, that something breaks, or that the feature doesn't resonate with customers. Feature flagging helps make high stakes s...

138 views 0 3
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you