Forums

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

Jira Automation Iterate through checkbox list items and perform an action based on selected values

sfullman September 10, 2020

Hi, I have a rule that runs when an Epic is created in my project.

The epic has a custom field which is a checkbox list

Based upon the selection in the checkbox list, I want to create one or many tasks.

-- I had this working fine when the selection field was a multi-select box.

The user would select one or many options and my rule generates tasks and links those tasks to the Epic.

example3.png

 

As I stated above, this little bit of the rule works on a select list, and I can generate my tasks.

The requirements have changed, and the end users would like a checkbox list instead. I am having problems figuring out the syntax to evaluate single or multiple selected items from a checkbox.

For some more context, this list could have up to 30+ items. I was going to evaluate each entry in the checkbox using the IF/Else and if it is checked, then create a task.

Thanks

 

3 answers

1 accepted

0 votes
Answer accepted
Sherry Goyal
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 10, 2020

Hello @sfullman 

 

Thanks for writing to us. You got this right as this can be done by simply using if/else blocks combined with "Issue Fields conditions". 

See for ex:

Screen Shot 2020-09-11 at 11.21.24 am.png

 

As you can see multiple conditions can be added in these blocks or you can select multiple checkbox values in one block.

 

Hope this resolves your concern.

 

Cheers
Sherry(A4j)

sfullman September 10, 2020

Thanks, that works.

Also, I found out that there is a limit to the number of components, I believe it told me 64.  I handled that by breaking if/else block into two rules.

Like Filipi Lima likes this
0 votes
Jeffrey Bistrong
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.
December 19, 2023

i am also trying to do this, and it would be nice not to have to do seperate if else statements and have one statement that loops through the check box selction 

0 votes
Marc-A (Nimbax)
Contributor
February 23, 2022

@Sherry Goyal 

 

This is a really nice way of doing this 

I try to understand something If i have a checkbox. 

 

Modules 

A
B
C
D
E
F
G

 

I want to create a task whatever module is select

 

Sometime ABDG other time CDEF

 

Is it possible to loop and say

if a is check

do this 

if b is check 

do this 

If c is check

do this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events