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.

1 answer

1 vote
John Funk
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
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

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events