Error when auto transitioning a workflow

I created a Fast-track transition as a Workflow post-function in an issue and it should fire every time a issue is created.
All issues have priority = Normal initially so I use it as a condition to fire the event.
Occasionally I get this error "Error creating issue: Can't transition workflow instance #192865. Current state is 0, requested state is 1"and when creating an issue but I have not been able to find any pattern when this happens. 
I have not found helpful information on this error on the internet so I'm hoping someone here can help.

2 answers

At first lets understand what do you want to do.

  • You have a post-function which should be called after issue creation. 
  • Have this function worked before or you are developing new one

General advices:

  • Test that this code work (see this to speed-up development:
  • Make sure that your postfuntion follows standard one to create an issue (if not, you will try to update unceated issue)
  • Why do you use condition "priority = Normal". What is the reason to do it?
  • Do you fire an event into postfunction. Why no trying create issue one?


Hi Vilhjálmur,

Which versions of JIRA and SR you use ? There is a similar bug report please have a look at GRV-691 

Kind regards

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

2,852 views 12 18
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot