Forums

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

Counting the number of sprints

Justin Gong September 27, 2023

Hello,

Is there a way to find the number of sprints a given issue has?

My ultimate goal is to automatically set Start date and Due date for an issue depending on the Sprint start date and sprint end date. But for issues that have taken or will take more than one sprint to complete, I'd like to maintain the start date and only change the due date.  

My thought process is to create an automation as follows: 

Trigger: Value added for Sprint field

If the number of sprints is 1, then copy sprint start date and end date to Start date and Due date

If else, the number of sprints is >1, then don't copy and change start date, copy and change Due date

 

1 answer

1 accepted

1 vote
Answer accepted
Kseniia Trushnikova
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
September 28, 2023

Hi @Justin Gong,

Use the smart value {{issue.sprint.size}} to check how many sprints the issue has. Here's the example of the rule:

Example Rule.png

Hope it helps.

Justin Gong September 28, 2023

This works. Thank you!

On a related note, I am trying to learn/familiarize myself on how to use smart values, but don't really like how it's broken down on Atlassian pages that cover this. For example, I tried looking for a field like what you provided, but wasn't able to find it.

Is there another space/page that perhaps has a list of all of the smart values that I can refer to?

Kseniia Trushnikova
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
September 29, 2023

@Justin Gong, yes, using Automation can make one feel like an explorer 😀

Since the field Sprint is a list field please use this page to find all the smart values available for lists: https://support.atlassian.com/cloud-automation/docs/jira-smart-values-lists/

Like • Justin Gong likes this
Justin Gong October 5, 2023

Thanks @Kseniia Trushnikova 

Would you be able to explain why jiradate is needed at the Edit Issue step? Why wouldn't {{issue.sprint.startDate}} be sufficient?

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events