Forums

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

Automation create Task and Subtask: Problem filter

Valen Cardozo
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.
July 13, 2021

Hello!
I am in need of help when generating a JQL that looks for a task to associate subtasks to it.
This is because it generates an automation where on a certain day of the month, it creates a task and associates the subtasks to that task.

The JQL I am using is the following:
createdDate = now() AND text ~ "\"Task title".

Any opinion is welcome!

2 answers

1 accepted

0 votes
Answer accepted
Daniel Ebers
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.
July 18, 2021

Hi @Valen Cardozo

here is a suggestion for an automation rule:

grafik.png

However, I believe Dario was getting the idea behind the JQL query better than me.
Correct me if I am wrong - intention on your end is being able to query for issues created using the rule. In that case it would be fine to extend the rule setting a custom field to a value of your choice or to label it.

Please adapt also the trigger - I missed your example "first day of a month" obviously.

Regards,
Daniel

Valen Cardozo
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.
July 19, 2021

Thank you @Daniel Ebers 
The example you provided is just what I needed to do, I take your example, thanks again!
Regards

Like Dario B likes this
0 votes
Dario B
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 16, 2021

Hello @Valen Cardozo ,

I am not sure I understand correctly the requirements. 

Is the automation rule creating the task and then creating the sub-tasks to be added to it or anything else?

However, in case you have to search for the created task but the JQL you are already using is also returning other results, an easy workaround would be to create a task issue type (or a specific component, or a value in a custom field, etc) that is only used  for these automatically created tasks and then you can easily match issuetype = XXX in your JQL (or component = XXX, etc).

 

Cheers,
Dario

Valen Cardozo
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.
July 16, 2021

Hi @Dario B 
Exactly, the idea is to run an automation every 1st of each month, generating a main task and also associate subtasks to that task with the different actions to be performed.

Like Dario B likes this
Dario B
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 21, 2021

Hi @Valen Cardozo , 

Apparently I got one part correctly while @Daniel Ebers  got the other part and provided the complete solution. Good team work here! ;) 

Cheers,
Dario

Like # people like this
Valen Cardozo
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.
July 21, 2021

Thank you both!

You were a great help
Cheers,
Valentin

Like Dario B likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events