Hi @N Y
You'd need to do something like this:
{{issue.customfield_10062.value.get(n)}}
This will return the selected values. For example, I have
Option1
Option2
Option3
Option4
Option5
User selects 1 and 3
{{issue.customfield_10062.value.get(0)}} will return Option1
{{issue.customfield_10062.value.get(1)}} will return Option3
Hi @N Y
Adding to Mark's answer...
With the smart values in the rule, you may access the values which are selected only; not all possible values. Which of these did you mean?
Kind regards,
Bill
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Mark Segallthnx, it worked!
Anyways, is there a documentation available that lists functionalitites like this somewhere?
@Bill Sheboyyes, i wish to access the selected values only.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Here's my go to for everything about smart values:
https://support.atlassian.com/cloud-automation/docs/smart-values-in-jira-automation/
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes, and...one key source on that documentation page is this one:
https://support.atlassian.com/cloud-automation/docs/find-the-smart-value-for-a-field/
This how-to article describes finding if a field is supported as a smart value, and what the correct smart value is. Smart values are name, spacing, and case-sensitive...so often rule problems come from using the wrong name (which leads to a null value, and no error messages).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi peeps, i want to adopt this solution when i'm integrating jira and opsgenie. when i set the opsgenie property like this below, then i couldn't see the value of selected list. is there any hint for me?
{{issue.customfield_10062.value.get(n)}}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello @Bill Sheboy / @Mark Segall
First of all, thanks for your time and great work on answering our questions.
I have a quick issue... I wish to obtain the selected values of a "checkbox" field type...
Is it possible?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Jesus Octavio Gutierrez Villegas
First thing: this is a very old thread, and so I recommend creating a new question rather than adding new ones onto it. That will help more people see it to offer suggestions. Thanks!
Regarding checkbox fields, that depends upon what you mean by "checkbox field":
Kind regards,
Bill
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.