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.ComponentAccessor
import com.atlassian.jira.issue.fields.CustomField
CustomField sprintField = ComponentAccessor.getCustomFieldManager().getCustomFieldObjectsByName('Sprint').first() //grab the sprint field
def sprintList = issue.getCustomFieldValue(sprintField) //define the value
int total = 0 // declare total to 0
for (sprint in sprintList)
{
total++
}
return total
Thank you!
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.