Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Automation

Sabrina Sykes-Gelder September 14, 2023

Hi

I am trying to create a simple task list and have got some of the automation to work but not all.

When I add a task X, it auto creates 3 sub-tasks and task Y - which is what I want.

However, what I need to happen next is when task Y is set to In Progress, I want another set of sub tasks to be created within task Y.

 

No matter what I am trying I can't get this to work and the new sub tasks are being created under task X.

I feel like I am missing something really obvious!

 

Thanks in advance

3 answers

1 accepted

1 vote
Answer accepted
David Blank
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.
September 14, 2023

Hi @Sabrina Sykes-Gelder and welcome to the Atlassian community!

 

Would you share screenshots of the automation and audit log with us to see your logic and how your rule is evaluating the issues you are using to test?

 

Are you attempting to create this in a single automation? It sounds like you might want to break this into two automations as you are triggering one on create and the second on a transition.

Let me know if this helps or if you can provide more detail to troubleshoot further.

Sabrina Sykes-Gelder September 15, 2023

Thank you both for your responses. 

I was trying to create one automation which is trigged after the first task was created.  I had also tried to create the second automation but wasn't having any luck with that either.

I have since tried Rilwan's suggestion but still can't get this to work.

I have uploaded 3 images that show you where I am.  I am unsure exactly what I need to enter into the JQL as when I tried the suggested format, the sub tasks did not create.

When I create a new item, the 3 sub tasks and task Y work as expected but it is the second stage I can't resolve.

I only want the additional tasks to generate under Task Y, once the status for Task Y has been moved to In Progress.

Current list view.PNGTask X - 3 sub tasks plus one additional Task Y.PNGTask Yb Marketing actions.PNG

David Blank
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.
September 15, 2023

Hi @Sabrina Sykes-Gelder ! 

 

It looks like you're almost there! Have you tried:

 

For your JQL:

summary ~ Task Y

Sabrina Sykes-Gelder September 15, 2023

Hi @David Blank 
I am feeling rather silly but in the JQL box, do I enter the summary  ~ Task Y exactly as you have typed it? I  have tried to do that but it didn't work.

Apologies, I haven't used this before. 

David Blank
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.
September 15, 2023

@Sabrina Sykes-Gelder No, that was my fault! You need quotations around it.

Like:

 summary ~ "Task Y"

Like Sabrina Sykes-Gelder likes this
Sabrina Sykes-Gelder September 15, 2023

Whoop Whoop - thank you sooooooo much!!

It is now working :-) 

Like Rilwan Ahmed likes this
David Blank
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.
September 15, 2023

We did it!

Note: I sometimes remove the first part of your rule trigger (To Do) so that any transition to Done will trigger your automation. I didn't expect it, but some of our Users just go straight to done without transitioning to In Progress. For me, my automation wasn't triggering because of this.

Like Sabrina Sykes-Gelder likes this
0 votes
Sabrina Sykes-Gelder September 15, 2023

 

 

0 votes
Rilwan Ahmed
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
September 14, 2023

Hi @Sabrina Sykes-Gelder ,

Welcome to the community !!

As said by @David Blank , you need to have 2 different rule. Let the first rule create 3 sub-tasks and task Y

Assuming you are able to create Task Y from first automation, it will have a same Summary  and issue type for all Task Y's. Let me assume summary as "ABC Summary" and Issue type as "Task". So the second rule should run as follows

  1. Trigger = Issue Transitioned 
  2. Component == IF: Add a condition
    • JQL Condition: Issuetype = Task and Summary ~ "ABC Summary" 
      You can add more conditions as required
  3. THEN: Add an action == Create Sub task
    • Add summary and other fields , Save and publish the rule. 

Your rule should look similar to this. 

image.png



 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events