Error when auto transitioning a workflow

Hi 
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

0 vote
Vasiliy Zverev Community Champion Dec 27, 2015

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:https://answers.atlassian.com/questions/32982259)
  • 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 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
Published yesterday in Jira

5 ways you can make the most of Jira Software and Bitbucket Cloud

As part of the Bitbucket product team I'm always interested in better understanding what kind of impact the use of our tools have on the way you work. In a recent study we conducted of software devel...

35 views 0 4
Read article

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