Trying to figure out how to build a query for work items that span multiple sprints.
Out of the box, I don't think Jira provides that functionality.
If you have Scriptrunner, you could create a scripted field that returns the number of sprints in a particular issue. The code is pretty simple.
import com.atlassian.jira.component.ComponentAccessorimport com.atlassian.jira.issue.fields.CustomFieldCustomField sprintField = ComponentAccessor.getCustomFieldManager().getCustomFieldObjectsByName('Sprint').first() //grab the sprint fielddef sprintList = issue.getCustomFieldValue(sprintField) //define the valueint total = 0 // declare total to 0for (sprint in sprintList){ total++}return total
Thank you!
It looks like you're new here. Sign in or register to get started.