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
Community Members
Community Events
Community Groups

Setting a multi-select field with Automation


I have stumbled into a use-case that I don't quite seem to be able to do.

The simplified case that leaves out all the bits I think I've worked out is:

  • Imagine we have a field for "areas impacted".  It's a multi-select list with say 7 options, named after the colours of the rainbow.
  • Next we have some other fields that might have data, or be empty.
  • We want to do things like "if one field is empty, areas needs to have 'red' selected.  If the field 'Kermit' is not empty, areas needs to have 'green' selected..  If three or more of these fields are filled, areas needs to have 'blue' selected".

I know how to do all the "if" bits. 

I do not see how to create a list of options that need to be set or unset in the multi-select field, or how to then apply that list to it.

1 answer

1 vote
Yvan Martin Atlassian Team Jun 17, 2022

Hi Nic,

Developer from Automation here.

The best way I can think of would just be to use append/remove APIs when editing the issue, so when those particular IF checks happen you can then just do an action to append the particular field. We do have a "variable" action but it's not currently setup in a way that you can keep appending then do 1 final edit, you'll need to do multiple with your if conditions.

One way to do this if you just need add and not remove is to use a smart value to copy the current fields options, then add the new option e.g. {{issue.Multi Checkbox}}

Screen Shot 2022-06-17 at 8.06.46 pm.png

If you would like more flexibility there is add/remove API with multi issue fields but it's not something we support natively so you'll need to use the advanced option in the edit action mentioned in in  . Here's an example that both adds and removes an option at the same time, you can also have multiple adds if you replace the remove word 

    "update": {
        "Multi Checkbox": [
                        "add": {"value":"Option1"}

                        "remove": {"value":"Option2"}

Screen Shot 2022-06-17 at 10.39.25 pm.pngHope this helps.

Feel free to reach out to Atlassian support if you require additional assistance


Suggest an answer

Log in or Sign up to answer

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you