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

Add Ticket to sprint based on the date field

Hi there, 

We have dozens of pre-planned Sprints, and each of the Sprint have specific date. 

I need automation so that when a new Issue is created this Issue will be added to one of these Sprints based on the date field this Issue has. I found an easy way to add Issue into Active Sprint and Next Sprint but not into future sprints. 

Is there a way to get Sprint ID by the Start and End date of the Sprint in Jira Automation?

 

Thank you.

1 answer

1 accepted

0 votes
Answer accepted
Bill Sheboy
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.
Oct 31, 2023

Hi @jan_ambroz 

Yes, that is possible...although perhaps not a good idea.  (More on that later.)

To do this your rule would use the Send Web Request action to call a Jira REST API function to gather all of the sprints, filter them to get your desired sprint's id, and update the issue.  I have seen other posts trying this and the complicated part is the filtering.  If you want to try this, here are some references to help:

Back to why this may not be a good idea, teams using Scrum use sprint planning to discuss the goal, evaluate work to complete that goal, and confirm their capacity / confidence in succeeding.  Pre-assigning work to sprints this way may discourage a team from the due diligence to understand the work and capacity, and just accept that "the date is the date...get it done".  Please keep these ideas in mind.  Thanks! 

Kind regards,
Bill

Hi Bill, 

 

thank you for the response! 

I have one additional question. When filtering web request responses and finding Sprint ID, how can I store this value to use it in the next step?

 

Thank you 

Bill Sheboy
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 06, 2023

You could either store that in a created variable, or use the filtered value directly.  Here is the Create Variable action for more information: https://support.atlassian.com/cloud-automation/docs/jira-automation-actions/#Create-variable

Variables cannot be used in all of the different rule actions / smart value expressions.  If it does not work as expected, please post your rule steps so the community can try to help.

Like jan_ambroz likes this

Suggest an answer

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

Atlassian Community Events