Validate and copy multiple field data

Бабій Олександр January 25, 2024

Validate and copy multiple field data
1. We have a multiple AUTOCHECK field with possible values
1 part
2 part
3 part
4 part
5 part
2. The system should check whether the value 2 part already exists in this field.
3. If not, add 2 parts to the existing set (for example, 1 part, 3 part, 4 part)
4. If there is 2 part - leave the field unchanged.

I did this:
{{issue.AUTOCHECK}} 2 part
As a result of the execution of the script, the field is updated - 2 part is added
This works when only one field value is selected. If 2 or more are pre-selected - the field value is simply rewritten to 2 part and that's it.
How to make everything that was before the change remain in the field and the 2nd part is added?
Thank you!

1 answer

0 votes
Jehan Bhathena
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 26, 2024

Hi @Бабій Олександр 

Based on the script your using the approach can change, if you're using Jira Automation the below link has a details explanation of the steps: https://community.atlassian.com/t5/Jira-Software-questions/Setting-a-multi-select-field-with-Automation/qaq-p/2053912#M539319

If in case you're using something like Python or Shell then API's are the way to go. This article mentions how to append new values thru a API body: https://community.atlassian.com/t5/Jira-Software-questions/How-to-save-values-to-a-multiselect-field-using-the-rest-API/qaq-p/1524820#M453681

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