Issue transition from Resolved to Reopened why do i need to use actionid of In Progress you think use id of Reopened?

I have a plugin and i'm simply trying to take a recently resolved Issue and Reopen it. I took a look at the workflow scheme chart and from the diagram it looks like in order to go from Resolved to Reopened you would use the Status id of Reopened. However, when I do that I get the following error:

actionid = 4
Error Messages: [It seems that you have tried to perform a workflow operation (Start Progress) that is not valid for the current state of this issue (PP-14). The likely cause is that somebody has changed the issue recently, please look at the issue history for details.]

However, when I pass the Status id of In Progress which is 3 it works? I'm just trying to understand why the In Progress status is the one used?

TransitionValidationResult upateResult = issueService.validateTransition(user, issueID,actionID,issueInputParameters);
				IssueService.IssueResult  result =  issueService.transition(user, upateResult);
      "attempted to reopen issue the result was: " + result.isValid());
				return result.isValid();

1 answer

1 vote

Action id is different from status id. If you look at the workflow XML or in the workflow steps by clicking on steps instead of the workflow designer, you will find an id for the transitions.

For reopen issue, it is 3 and for Start progress it is 4. Stop Progress 301 and so on..

Thank you. I looked around and had trouble finding that!

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 9 hours ago in Hipchat

Moving from Hipchat to Stride? Here’s what you’ll love

Heya, Hipchat friends! We’re so happy you’re checking out   Stride. Whether you know it or not, you have been instrumental in making Stride come to life. Every feature, design, and functionality...

37 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