Forums

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

Auto create next two sprints when sprint is closed

Amit Bisht
Contributor
April 9, 2025

I've created an automation rule in Jira, but I'm currently unsure how to handle the Sprint Name dynamically—especially when a sprint ends and a new one begins.

For example, let's say the current sprint is named: XYZ_FY25-26_Week 01-02. Once this sprint is completed, I want the next sprint to automatically follow the same naming pattern and be updated to: XYZ_FY25-26_Week 03-04.

My question is: how can Jira automation be configured to increment the "Week" range accordingly when creating or transitioning to the next sprint?Screenshot 2025-04-10 at 11.01.54 AM.png

1 answer

0 votes
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.
April 10, 2025

Hi @Amit Bisht 

Using text functions, conditional logic, math expressions, and date / time functions, you could parse the just-completed sprint name, {{sprint.name}}, store the pieces using the Create Variable action, and then reassemble them to create the new sprint.

As each customer's sprint naming convention is different, I recommend using a test rule to develop the logic needed to handle the parsing, and then apply that to your rule.

For example, this rule could use the Scheduled trigger to be repeatedly run to help test the parsing:

  • trigger: scheduled with no JQL
  • action: create variable
    • variable name: varPreviousSprintName
    • smart value: XYZ_FY25-26_Week 01-02
  • action: log
    • previous name is: {{varPreviousSprintName}}
  • action: create variable
    • variable name: varPreviouseSprintWeeks
    • smart value: {{varPreviousSprintName.substringAfter("Week ")}}
  • ...

 

And, if your sprint names are based upon the current date, {{now}}, that value could be extracted and formatted using the date / time format() function to produce the year, week, etc.

 

Kind regards,
Bill

Suggest an answer

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

Atlassian Community Events