Hi, I found a post from 2022 in which @Bill Sheboy mentioned being able to include ONLY the options selected in a multi-select list. I need to send the reporter an email to fix the selected items (included using smart values in an automation, ideally). I've tried using the iterative {{#}} {{/}} smart values with no success. Anyone know how to do this?
I'm using a company-managed space in Jira Service Management cloud, Standard plan. Thank you!
To get all the possible values for the multiple-select option field, the rule could call the REST API endpoint using the Send Web Request action to do so.
But first, I believe the rule would need to get the context ID for the field with another endpoint:
Kind regards,
Bill
Hi @Bill Sheboy , is there a way to get only the selected options by using something other than REST API and Web Requests? I'm thinking some kind of iterations through the options and only if they are selected (true) will they be displayed/available for inclusion in email text.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Sorry, I misunderstood your question, @Susan Waldrip
Yes, you may get the selected items by iterating over the custom field. For example, to get the names of the selected options, please try this:
{{issue.customfield_12345.value}}
That will produce a list of values with comma-space separators. If you wanted bulleted items, use the long-format iterator:
{{#issue.customfield_12345}}
* {{value}}
{{/}}
The value attribute is used because without it, the default attribute is the numeric id attribute for each option.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Both of these suggestions work beautifully, thanks very much for your help!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.