Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

Replace Script Runner 'Sprint Name' Value?

I'm using the ScriptRunner functions completeInSprint, incompleteInSprint, removedAfterSprintStart, and addedAfterSprintStart together in order to determine the items that were committed to, completed, incomplete, added and incomplete during a sprint.  Each function takes as inputs the Board Name and (optional) Sprint Name.  

For example - committed stories can be found by: (issueFunction in completeInSprint("Board", "SprintName") OR issueFunction in incompleteInSprint("Board", "SprintName") OR issueFunction in removedAfterSprintStart("Board", "SprintName")) AND issueFunction not in addedAfterSprintStart("Board", "SprintName")

* Note the first three expressions are grouped together.

Anyway, as you can tell, the Board and SprintName are repeated numerous times.  I'd like to be able to 'import' those values similar to being able to use a function='fName' or via a text replace, or something like that within the JQL.  

Any thoughts?

0 answers

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Jira Service Management

Improving the Create Issue Experience in Jira Service Management Cloud

Hello everyone!  We are very excited to announce some much needed changes to the issue create experience in JSM (the blue "create" button) at the top of the screen.  We have just starte...

225 views 10 7
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you