Compilation failure of addedAfterSprintStart function from Script Runner

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

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?

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)

 

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Julia Dillon
Posted Tuesday in Jira

Tell us how your team runs on Jira!

Hey Atlassian Community! Today we are launching a bunch of customer stories about the amazing work teams, like Dropbox and Twilio, are doing with Jira. You can check out the stories here. The thi...

754 views 2 19
Join discussion

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