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!