Forums

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

Jira automation: adding label when Sub-task is created not working

Renata Klimiato March 19, 2025

Hello, 

I am trying to create Jira automation for adding label when Sub-task is created, however it does not work... whatever I do - subtask does not get label assigned. Is there a bug in the system? It works with other issue types

image (19).png

2 answers

2 votes
John Funk
Community Champion
March 19, 2025

Hi Renata - Welcome to the Atlassian Community!

Please include a screenshot of the Audit log for the issue when the rule runs. One thing to try to is put in a Re-fetch action after the initial Issue created trigger to give the system a little time to finish getting the issue created before doing the issue edit. 

Renata Klimiato March 20, 2025

Fetch issue did not work for me here... Do you know how much time the delay takes due to "re-fetch action" ? I was also using it when tried to automate creation of two related issues in a row WHEN issue is created, however it feels like the system skips half of my automation because initial ticket creation is not finished. It just skips those steps in red.. Is there some action with possibility to delay other steps by 5-10sec?

 

 image (23).png

John Funk
Community Champion
March 20, 2025

See if you have an action for Delay - then you could make it like 10 seconds or something. 

Or what I do a lot is just put in 2 or 3 consecutive re-fetches and see if that helps. 

0 votes
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.
March 19, 2025

@Renata Klimiato 

click on more options and use this json to update the label field. this will work.

{
"fields": {
"labels": [ "operational_excellence"]
}
}

snip.png

and as John suggested, adding a re-fetch issue after the checking for sub-task will also help

 

Suggest an answer

Log in or Sign up to answer