I am attempting to use the Add/remove from sprint post function to add a ticket to the current active sprint when it is moved in progress. However when I try it I get this error.
2021-06-09 08:25:12,392 ERROR [workflow.AbstractScriptWorkflowFunction]: Workflow script has failed on issue <> for user '<>'. View here: <>
java.util.NoSuchElementException
at io.atlassian.fugue.Either.getRight(Either.java:552)
at io.atlassian.fugue.Either$RightProjection.get(Either.java:900)
at com.atlassian.greenhopper.service.ServiceOutcomeImpl.getValue(ServiceOutcomeImpl.java:178)
at com.atlassian.greenhopper.service.ServiceOutcome$getValue.call(Unknown Source)
at com.onresolve.scriptrunner.canned.jira.utils.agile.AddRemoveFromSprint.execute(AddRemoveFromSprint.groovy:271)
at com.onresolve.scriptrunner.canned.jira.utils.agile.AddRemoveFromSprint$execute$2.call(Unknown Source)
at com.onresolve.scriptrunner.canned.jira.workflow.postfunctions.AddRemoveFromSprintProxy.execute(AddRemoveFromSprintProxy.groovy:87)
at com.onresolve.scriptrunner.canned.jira.workflow.postfunctions.AddRemoveFromSprintProxy$execute$1.callCurrent(Unknown Source)
at com.onresolve.scriptrunner.canned.jira.workflow.AbstractWorkflowCannedScript.execute(AbstractWorkflowCannedScript.groovy:23)
at com.onresolve.scriptrunner.canned.jira.workflow.AbstractWorkflowCannedScript$execute$0.call(Unknown Source)
at com.onresolve.scriptrunner.jira.workflow.AbstractScriptWorkflowFunction$_run_closure2.doCall(AbstractScriptWorkflowFunction.groovy:89)
at com.onresolve.scriptrunner.jira.workflow.AbstractScriptWorkflowFunction$_run_closure2.doCall(AbstractScriptWorkflowFunction.groovy)
at com.onresolve.scriptrunner.runner.diag.DiagnosticsManagerImpl$DiagnosticsExecutionHandlerImpl$_execute_closure1.doCall(DiagnosticsManagerImpl.groovy:359)
at com.onresolve.scriptrunner.runner.diag.DiagnosticsManagerImpl$DiagnosticsExecutionHandlerImpl$_execute_closure1.doCall(DiagnosticsManagerImpl.groovy)
at com.onresolve.scriptrunner.runner.ScriptExecutionRecorder.withRecording(ScriptExecutionRecorder.groovy:13)
at com.onresolve.scriptrunner.runner.ScriptExecutionRecorder$withRecording.call(Unknown Source)
at com.onresolve.scriptrunner.runner.diag.DiagnosticsManagerImpl$DiagnosticsExecutionHandlerImpl.execute(DiagnosticsManagerImpl.groovy:357)
at com.onresolve.scriptrunner.runner.diag.DiagnosticsExecutionHandler$execute$3.call(Unknown Source)
at com.onresolve.scriptrunner.jira.workflow.AbstractScriptWorkflowFunction.run(AbstractScriptWorkflowFunction.groovy:82)
When I flip the function and try to remove the issue from its current sprint when it is moved to in progress that works fine.
This is my configuration:
Hi @Krishan Patel ,
Ensure that you have schedule permissions. The function will pick the first active sprint from that board
Hi, I am running it as the project lead who has the permissions to manage sprints.
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.