Compilation failure of addedAfterSprintStart function from Script Runner

Liang Shan May 19, 2016

Recently, We have this problem when checking the stories added to sprint after the sprint start with script "issueFunction in addedAfterSprintStart(board name, [sprint name])":

Scripted function "addedAfterSprintStart" compilation failure. Contact administrator and check logs. Message: null



The version of ScriptRunner is 4.1.3.11 and JIRA is 6.3.15.

 

Has anyone encountered this issue before?

 

2 answers

0 votes
Liang Shan May 23, 2016

Here's the error call stack:

 

java.util.NoSuchElementException
at com.atlassian.fugue.Either.getRight(Either.java:176)
at com.atlassian.fugue.Either$RightProjection.get(Either.java:453)
at com.atlassian.greenhopper.service.ServiceOutcomeImpl.get(ServiceOutcomeImpl.java:265)
at com.atlassian.greenhopper.service.ServiceOutcome$get$0.call(Unknown Source)
at com.onresolve.jira.groovy.jql.plugins.AddedRemovedAfterSprintStart.getSprintsFromBoard(AddedRemovedAfterSprintStart.groovy:151)
at com.onresolve.jira.groovy.jql.plugins.AddedRemovedAfterSprintStart$getSprintsFromBoard$0.callCurrent(Unknown Source)
at com.onresolve.jira.groovy.jql.plugins.AddedRemovedAfterSprintStart.isSprintInBoard(AddedRemovedAfterSprintStart.groovy:170)
at com.onresolve.jira.groovy.jql.plugins.AddedRemovedAfterSprintStart$isSprintInBoard.callCurrent(Unknown Source)
at com.onresolve.jira.groovy.jql.plugins.AddedRemovedAfterSprintStart.validate(AddedRemovedAfterSprintStart.groovy:96)
at com.onresolve.jira.groovy.jql.JqlFunction$validate$4.call(Unknown Source)
at com.onresolve.jira.groovy.jql.ScriptedJqlFunction.validate(ScriptedJqlFunction.groovy:93)

 

Alexis Baker May 22, 2018

Was this issue resolved? I have encountered the same issue just now

Like Jon Chau likes this
0 votes
Liang Shan May 23, 2016

We have two projects in the same JIRA site. The script problem happen for one project while working fine in another.

Could it be due to the ScriptRunnder is evaluation version?

Suggest an answer

Log in or Sign up to answer