Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,364,739
Community Members
 
Community Events
168
Community Groups

how to automatically create sub tasks based chechbox list

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 Sep 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,

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 Sep 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.

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

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

0 votes
Elvir Rising Star Sep 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,

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 Sep 09, 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,

Hi Elvir, 

yes, user will selects multiple checkboxes :) 

Field is not plugin related. 

Suggest an answer

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

Atlassian Community Events