how to automatically create sub tasks based chechbox list

Dąbrowski Damian September 9, 2022

Hi, i am searching solution when user create task with chechbox list with item. 

 

Scenario 

when user create task with chechbox list item i want create based this chechbox list sub - task 

Task

  1. Item 1 - check
  2. Item 2 - check
  3. Item 3 - check 

Sub-task 

  1. Sub - task 1 with name item 1 
  2. Sub - task 2 with name item 2
  3. Sub - task 3 with name item 3 

Is is possible ? 

3 answers

1 accepted

0 votes
Answer accepted
Elvir
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 12, 2022

Hello,

 

Summary !~ "item". Item is a value from the the checkbox.

Because if the sub-task exists already, there is no point of creating the same one. Every Time a user check a value from the checkbox, you should test if there is an existing sub-task.

Because of the structure of the automation rule (if/else), I think you need to create 10 rules but maybe somebody else has a better solution.

 

Best regards,

Dąbrowski Damian September 12, 2022

Sorry Elvir, but i don't understand  :) 

I don't have sub-tasks created I would like to create one based on the main task from my field value. I feel this will be difficult to do ;/ 

Like Elvir likes this
Elvir
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 12, 2022

I suggest you start simple and create the subtasks on this rule.

It should look like this.

Trigger = issue created

 

Condition:

image.png

 

Action:

image.png

 

Let me know if this works for you.

Dąbrowski Damian September 13, 2022

Hi, everything is great. But right i have another problem. How to automatically change status in parent task ? :D I've been struggling since this morning. 

Screen Shot 09-13-22 at 12.51 PM 001.PNG Screen Shot 09-13-22 at 12.51 PM.PNG

Dąbrowski Damian September 13, 2022

I have solution :) Everything it's ok :) 

0 votes
Elvir
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 12, 2022

Hello,

In that case I would create 3 automation rules (1 for each selected item of the checkbox).

The automation rule would look like this:

 

Trigger : Field value changed (the checkbox)

Condition : Related issues condition (all match specified jql) 

Matching jql: summary !~ "item"

Action : Create subtask.

 

This can also be done with scripts but I guessing you are on Atlassian cloud and since Automation is included, it makes sense to use it.

Best regards,

Dąbrowski Damian September 12, 2022

Elivir, it's great :)  but i don't understand this 'clause' :  Matching jql: summary !~ "item" .

"item" = Is it name value from my checkbox fields ?  

summary! = ? 

 

Screen Shot 09-12-22 at 01.38 PM.PNG

and my error: 

 

Screen Shot 09-12-22 at 01.41 PM.PNG

In my case. I have, in my checkbox fields: 10 value. 

For each value create 1 automation rule, yes ? It's no problem for me :) 

 

D. 

0 votes
Elvir
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 9, 2022

Hello Damian,

In order you understand the business need behind, what if the user selects multiple checkboxes items ?

I am guessing there is a checkbox field which is not plugin related ?

 

Best regards,

Dąbrowski Damian September 11, 2022

Hi Elvir, 

yes, user will selects multiple checkboxes :) 

Field is not plugin related. 

Michal Nedela
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!
January 16, 2024

Did you found solution please ? I have multiple values in checkbox ticked and I want to create subtask for each ticked. Struggling with that.

Like Gary J likes this

Suggest an answer

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

Atlassian Community Events