Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Show sprint start/ end date in Jira Structure colum?

Charlie Misonne
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Oct 23, 2020

I have a Jira Structure which groups some issues by sprint.

I'm wondering if I can show the sprint start and end date in columns using a formula? So far I'm only able to show the sprint name.

2 answers

1 accepted

3 votes
Answer accepted
David Niro
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Oct 28, 2020

Hello Charlie,

David from ALM Works here.  While Structure itself cannot access the Sprint Attributes from Jira, this can be accomplished by creating a scripted field with Scriptrunner.  Through Scriptrunner, the sprint start and end date values can be displayed as columns in your structure.

You may need to modify the script, but below is a snippet of what it should look like.

import com.atlassian.jira.component.ComponentAccessor
def whichDate = "StartDate"
def sprintField = ComponentAccessor.getCustomFieldManager().getCustomFieldObjectByName("Sprint")
def dateToWorkWith
if (whichDate == "EndDate"){
    dateToWorkWith = issue.getCustomFieldValue(sprintField).endDate
}
if (whichDate == "StartDate"){
    dateToWorkWith = issue.getCustomFieldValue(sprintField).startDate
}
def result = dateToWorkWith[dateToWorkWith.size()-1]
if (result == null){
    return "No Date Information"
}
result

If you have any questions about this or need additional assistance, please feel free to contact us via support-team@almworks.com.  We look forward to hearing from you.

Best,
David

Charlie Misonne
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Oct 29, 2020

Hi David

Thanks for your detailed answer and the script.

I'm luccky enough to have sciptrunner on that Jira instance :-)

 

Cheers

Charlie

How do I do this with Jira Cloud?

Like Dave Rosenlund likes this
Nicholas Ellis _ALM Works_
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
May 31, 2022

This answer is a bit old, this is much easier to do now.  On cloud (or Server/DC) you can now do a very simple formula like so:

sprint.startDate

sprint.endDate

Here is the relevant documentation if you'd like to learn more: structure cloud formula documentation

Cheers,

Nick [ALM Works]

Like # people like this
1 vote
Nicholas Ellis _ALM Works_
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
May 31, 2022

@entelexeia 

On cloud (or Server/DC) you can now do a very simple formula like so:

sprint.startDate

sprint.endDate

Here is the relevant documentation if you'd like to learn more: structure cloud formula documentation

Cheers,

Nick [ALM Works]

Vesa Purho
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
Nov 17, 2023

Do you know if it is possible to access the sprint start and end dates from the parent if I group the issues by sprint? 

So I group by sprint, and for each issue under that group, I would like to pull the sprint start and end dates from the group. This is relevant in the situations when the issue has multiple sprints (it has been spilling from sprint to sprint) and I would like to just handle the start and end dates of the sprint the issue is grouped under.

Stepan Kholodov _Tempo_
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.
Nov 21, 2023

Hello @Vesa Purho 

You can display the parent Sprint's Start or End date with a formula like this on Server/Data Center:

parent{sprintstartdate}
where sprintstartdate variable should be mapped to the Sprint Start Date attribute.

and this formula on Cloud:

sprint.filter($.name = parent{split(summary,": ").last()}).startdate

I hope this helps. If you need further assistance, please reach out to us directly at our support portal and we'll get back to you shortly.

Best regards,
Stepan Kholodov
Tempo (the Structure app vendor)

Like Vesa Purho likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
TAGS
AUG Leaders

Atlassian Community Events