Forums

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

Jira Automation to set the Summary off of Multi-select field

Michael Wolfe
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 22, 2021

We're setting the summary of an issue based on what is in a few fields, and one of which is a multi-select field.  To make sure we aren't modifying the options that were selected, we're copying the values of the multi-select into another multi-select field for temporary storage in order to remove some of what is selected, and then use the remaining value as what's included in the summary.  The problem is, I haven't found a way to do this yet.  Is this possible with Automation, or will I need something like ScriptRunner?

e.g.

Summary:  {{Field1}] {[Field2}} {{Option from field 3}}

field 3:

value: 1,

value: 2, (Desired value)

value: 3

1 answer

1 vote
Bill Sheboy
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.
November 22, 2021

Hi @Michael Wolfe -- Welcome to the Atlassian Community!

I am not quite following what you are doing.  Do you mean you want to extract the currently selected values from the multi-select field, and add them to the summary?

If that is correct, you can do that.  Please look here to learn how to access the custom field attributes as smart values: https://support.atlassian.com/jira-software-cloud/docs/smart-values-general/

If that is not correct, would you please clarify?  Perhaps post an image of your rule and explain how it is not working as you expect.  Thanks!

Kind regards,
Bill

Michael Wolfe
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 22, 2021

Hi @Bill Sheboy

The multi-select field could have values selected that are valuable for the issue's information, but we only want specific values of that field to go into the Summary.  We would need to parse what was selected, and only include the options that are relevant in the Summary.

Thanks for responding so quickly,

Michael  

Bill Sheboy
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.
November 22, 2021

Thanks for clarifying, Michael.

There is a new conditional filtering feature for smart values which may help do this: https://community.atlassian.com/t5/Automation-articles/Filtering-smart-value-lists/ba-p/1827588

If that does not help, please take a look at the list and text functions, as you could convert the field values into a list and then use filtering/search replace to get what you need.

Suggest an answer

Log in or Sign up to answer