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);
			if(upateResult.isValid())
			{
				IssueService.IssueResult  result =  issueService.transition(user, upateResult);
                logger.info("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
Community showcase
Posted Tuesday in United States

Topic Tuesday: What's your favorite topic?

Good morning All, Our goal is to get you into the habit of while enjoying your favorite morning drink you are checking the NOVA "space" for topics and comments. Your input is really needed and...

61 views 4 0
View post

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