Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Display LAST Sprint Number in Structure Column

Deleted user June 12, 2020

I need to build a report that, among other things, needs to show the following items:

  • I want to see the current sprint number the story is assigned to in a Structure column.  I found several column headers that look as though they would give me what I'm looking for, but either they are blank or they show the full history of the sprints the stories have been a part of.

        Sprint Options.PNG       Example of Sprint History Rather Than Most Recent or Current Sprint.PNG

 

  • I want the Sprint Start Date to appear in the structure.  Again, there are several columns that look like they'd work, but none of them populate.Start Date Options.PNG
  • I want the Sprint End Date to appear in the structure.  Just as above, many options, none work.

          End Date Options.PNG

I have to imagine this is completely possible and I'm just an idiot who hasn't been able to figure it out, but I feel like I've tried everything, and it's like the columns aren't associated to the fields in the boards, sprints, or stories.

 

This is all I want:

The Information and Fields I'm Looking For.PNG

Thanks in advance!

Michael

2 answers

0 votes
Harshal Bhave January 15, 2023

We are on JIRA 8.1+ and now it is possible to use properties of sprint.

sprint.endDate

will give you the end date.

0 votes
Egor Tasa [ALM Works]
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 15, 2020

Hi Michael,

It is not yet possible to find exactly the last sprint, using Structure, but it may become possible in the future, when we introduce array handling in formulas. And Sprint start and end dates are not available either, but may become available later. In the meantime, you can use ScriptRunner (or similar app) to create custom scriptable fields that would retrieve sprint dates. Here are a couple of examples:

import com.atlassian.jira.component.ComponentAccessor
import com.atlassian.jira.issue.Issue

def customFieldManager = ComponentAccessor.getCustomFieldManager()
def sprintCf = customFieldManager.getCustomFieldObjectByName("Sprint")

return issue.getCustomFieldValue(sprintCf)?.startDate?.first()?.toDate()

And


import com.atlassian.jira.component.ComponentAccessor
import com.atlassian.jira.issue.Issue

def customFieldManager = ComponentAccessor.getCustomFieldManager()
def sprintCf = customFieldManager.getCustomFieldObjectByName("Sprint")

return issue.getCustomFieldValue(sprintCf)?.endDate?.first()?.toDate()

Regards,

Egor

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events