Dynamically update multi select field values when updating another multiselect field

Platform Notice: Cloud Only - This article only applies to Atlassian products on the cloud platform.

Summary

How to dynamically update multi-select field values between two fields using Automation. Example if values are added in Field B they should get removed from Field A.

Solution

  • Trigger: When a field value is changed

  • Action: Edit Issue field (Additional fields)

Option A & Option B - both are multi-select fields in the below smart values.

The idea below is to use the "field operations" mechanism of Jira to first add all the options to the second multi-select field, then remove from the field the ones set in the first multi-select.

1 2 3 4 5 6 7 8 9 10 { "update": { "OptionsB": [ {"add": {"value":"O1"}}, {"add": {"value":"O2"}}, {"add": {"value":"O3"}}, {{#issue.OptionsA}}{"remove": {"value":"{{value}}"} }{{^last}},{{/}}{{/}} ] } }

Sharing below the Rule screenshot for reference:

Update Multi-select field using JSON in automation

Updated on May 31, 2024

Still need help?

The Atlassian Community is here for you.