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(); }
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..
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
See https://confluence.atlassian.com/display/JIRA/Configuring+Workflow#ConfiguringWorkflow-addworkflowstepvws for the screenshot and details on seeing the steps.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.