Forums

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

Automation for Spillover Subtasks

siva.vemula February 3, 2025

Hi There,

I Subtasks on the stories .

I am looking for a Automation Rule which track Stories that spill over into the next Sprint, ensuring that any Sub-task that isn't completed gets marked as Spillover = Yes. when the sprint is closed.

2 answers

1 accepted

1 vote
Answer accepted
Vishal Biyani
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.
February 3, 2025

@siva.vemula 

You can try below automation rule

snip.png

siva.vemula February 3, 2025

Hi @Vishal Biyani  Thank you so much. If the subtasks is NOT DONE, the issue filed Spillover should be updated as YES and if the Subtask is DONE the issue filed Spillover should be updated as NO.

Can you review and correct

image.png

Vishal Biyani
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.
February 3, 2025

in that case in Issue matches JQL use issuetype in subTaskIssueTypes()

Then add another if Issue matches JQL condition: 

check statusCategory = Done

then edit issue fields to set Spilled Over = No

Then add another if Issue matches JQL condition: 

check statusCategory != Done

edit issue fields to set Spilled Over = Yes

0 votes
siva.vemula February 3, 2025

@Vishal Biyani  Can you help with the screenshot please 

Vishal Biyani
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.
February 3, 2025

@siva.vemula 

Can you make the change and share the screen shot of what you have done?

if you hit an issue, I will be happy to help. However, for your own learning, I encourage you to try this out yourself first

siva.vemula February 3, 2025

image.png Kindly validate 

Vishal Biyani
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.
February 3, 2025

I think what you can do instead of having 3 if condition, 

in 1st condition, use issuetype in subTaskIssueTypes() and statusCategory = Done

then edit issue

in 2nd condition, use issuetype in subTaskIssueTypes() and statusCategory != Done

then edit issue

 

that will ensure that both ifs are evaluated correctly.

Like • siva.vemula likes this
siva.vemula February 3, 2025

I have tried the above query but for subtasks not done its getting updated as YES. But for subtasks with are done Spillover filed is not getting updated.
image.png
Kindly review and suggest 

Vishal Biyani
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.
February 4, 2025

can you share the log of your automation execution

siva.vemula February 4, 2025

here it is
image.png

Vishal Biyani
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.
February 4, 2025

2nd JQL condition shows the issues are not matching Done criteria. Looks like all the subtasks are matching not Done criteria.

Can you check if there are any sub tasks from above list that were in Done statusCategory? 

siva.vemula February 4, 2025

yes. There are subtasks in Done statusCategory. 

siva.vemula February 12, 2025

Thank you . This works 

siva.vemula February 14, 2025

hi @Vishal Biyani 

This automation of updating spillover field is working for subtask which are DONE , its not getting updated for Subtask which are not done. Could you please assit 

image.png

Vishal Biyani
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.
February 14, 2025

I think what you can do is, click on Add Component

Add same Branch for Issues in sprint

move the 2nd if and edit condition, in that branch.

This should work in my opinion

 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
atlassian, team '25 europe, atlassian event, barcelona 2025, jira, confluence, atlassian intelligence, rovo, ai-powered collaboration, developer tools, agile teams, digital transformation, teamwork solutions, atlassian conference, product announcements

🌆 Team '25 Europe registration is now open!

Join the largest European gathering of the Atlassian Community and reimagine what’s possible when great teams and transformative technology come together. Plus, grab your Super Fan ticket now and save over €1,000 on your pass before prices rise on 3 June.

Register now
AUG Leaders

Atlassian Community Events