Forums

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

Trigger automation when I create a subtask

Mary Jaekl
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 7, 2022

I am attempting to trigger a rule when a subtask is created. Is this not possible?

We are having an issue where components are being left blank when a subtask is created. We'd like to automatically set to match the parent when the subtask is created.

2 answers

2 votes
John Funk
Community Champion
November 7, 2022

Hi Mary - Welcome to the Atlassian Community!

See the example below with an Issue Created trigger and a Condition for JQL for a subtask Issue type. Then add a new action for Edit Issue and set the value of the Component. 

Mary Jaekl
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 10, 2022

Hi John,

Did you intend to attach an example? I cannot see one.

Here's what I started with - but my problem is that the rule is never triggered when I create a subtask (I do this from the details of a story - selecting More->Create Sub-task). When a story is created it will send the email but obviously doesn't do the rest since it's an issue being created and not the subtask.

 

Capture.PNG

Like Bernhard BRUNNER likes this
Bernhard BRUNNER July 11, 2024

Hello Mary,

I might be too late, but for everyone else with the same goal as you and me here is my solution:
Screenshot 2024-07-11 141720.png

It took me a long time to figure this out. I was trying to use the JQL condition, but it never works {{issue.issueType.name}} equals "Sub-task". For some reason, it works when i use Task or Epic instead of Sub-task. I dont know why.
I also tired If or Else. Same thing.

Like John Funk likes this
0 votes
Renata Klimiato March 18, 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

John Funk
Community Champion
March 19, 2025

Hi Renata - Welcome to the Atlassian Community!

You should create a new question so more people will see it and can address your specific needs. Feel free to tag me on it if you like. 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events