Automation to Create Sub-Task Based on Multi-Choice/Checkbox Field

Drishti Maharaj
Contributor
October 24, 2024

Hi,

We seem to be having a bit of an issue with an automation to create sub-task based on a

Multi-Choice/Checkbox Field.

The idea is that when the field is edited, different sub-task are created based on the options. The dilemma is that the user could pick one option then decide to pick another option an hour or two later.

When the field is edited, it then re-creates the first sub-task based on the option.

Example:

Field Options

Option A

Option B

Option C

- User picks Option A at 10:00 and sub-task for Option A is created.

- User picks Option B at 11:00 and then sub-task for both Option A & Option B is created

How would you prevent the sub-task for Option A duplicating when the field is edited?

Thanks.

 

1 answer

0 votes
Trudy Claspill
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
October 25, 2024

Hello @Drishti Maharaj 

When asking for help modifying a rule it will enable us to help you more effectively is you provide screen images that show your entire rule, and the details of each step.

Possibly, in your Automation rule where you have determined that Option A has been selected, you might be able to follow that with checks to see if the corresponding subtask already exists by using a Lookup Issues action to search for a subtask under the trigger issue with the specified Summary used for the Option A subtask, and then checking to see if the Lookup Issues action found any issues (using a smart value condition to check {{lookupIssues.size}} )

Drishti Maharaj
Contributor
October 28, 2024

Hi @Trudy Claspill  - I have been trying to play around with this and I found a few other posts also on Atlassian Community but I cannot seem to get it right.

This is the automation I had that I went off base don this with some modifications (https://community.atlassian.com/t5/Jira-questions/Automatically-creating-Subtasks-from-a-Checkboxes-field/qaq-p/2515668) but the issue is that the other sub-tasks are still getting created so there is probably an issue with the "Lookup issues" and "Compare values".

Screenshot 2024-10-28 095815.pngScreenshot 2024-10-28 095803.png

 

 

Trudy Claspill
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
October 28, 2024

Hello @Drishti Maharaj 

Please provide screen images that show the entire rule, not just the branch.

Also, please provide the details of your For Each: Smart Value step.

And, as @Bill Sheboy note in the other post where you asked for help, you need to enclose Department in curly quotes where you are trying to use it in the JQL of the Lookup Issues action.

Like Bill Sheboy likes this
Drishti Maharaj
Contributor
October 28, 2024

Hi, managed to actually get it right and the automation is working as it should now. Thanks. 

Like Bill Sheboy likes this
siviani.madrigal December 5, 2024

Hey @Drishti Maharaj  how do you fixed?? Im interesting to understand how this automation rule can be config, I have same situation. 

Drishti Maharaj
Contributor
December 6, 2024

Hi @siviani.madrigal  - here are some screenshots of what I did.

New 4.pngNew 3.pngNew 2.pngNew 1.png

Like siviani.madrigal likes this
siviani.madrigal December 9, 2024

Thank you very much!! 

Suggest an answer

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

Atlassian Community Events