Forums

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

How to display custom field type Select List (multiple choices) using Smart values in automation

Deleted user October 5, 2021

I have created a custom field that the user requires to select one or several items from the list.

When the task is closed then the linked task X should receive a message listing all the options selected from the "Multi-select lists" in the triggering task.

I found this reference (but this is not working for me): 

https://support.atlassian.com/jira-software-cloud/docs/use-smart-values-to-access-listed-values/

Here are the types that I tried considering the previous reference but NONE is returning a value.

The custom field is called "FOP issues identified"

 

a *{{issue.cf11852}}*
0 *{{issue.cf11852.value}}*
1 *{{issue.FOP issues identified.value}}*
2 *{{issue.FOP issues identified}}*
3 *{{#issue.FOP issues identified}} {{value}}{{^last}}- {{/}}{{/}}*
4 *{{#issue.FOP issues identified}}{{value}} {{/}}*
5 *{{issue.FOP issues identified.value.join(" ")}}*

 

(!) The FOP issues identified custom field is in the trigger task, but I want to add a comment in the linked task(s) the list issues identified (selected in the trigger task).

 

1 answer

1 accepted

2 votes
Answer accepted
JD
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 5, 2021

Hey @[deleted] 

I'll assume you're using a branch to comment on the linked issues? When you're in a branch the {{issue}} references the current issue the branch is actioning and {{triggerIssue}} references the issue that triggered the rule. So your smart value would be {{triggerIssue.FOP issues identified.value}}.

Here is an example of what your rule might look like:

Screen Shot 2021-10-06 at 9.20.00 am.png

This would comment on the linked issues with the values:

Screen Shot 2021-10-06 at 9.21.24 am.png

The documentation link you have has different ways to format that list.

Hope that helps!

- John

Deleted user October 6, 2021

Hello John, it worked, thanks.

But I still have a question, how to make it work with the "short name" of the custom field.

The next two lines don't return a value.

a *{{triggerIssue.cf11852}}*
0 *{{triggerIssue.cf11852.value}}*

What is the valid format for using the "cf#####" when referring to custom fields?

John Funk
Community Champion
October 11, 2021

Hi Israel,

They syntax for custom fields looks like this:

{{triggerIssue.customfield_11852.value}}

Raju Mandapaka
Contributor
September 1, 2022

Hi @John Funk 

Could you please help in below scenario, i am having a custom field (multi select custom field), is there any way so that we can list out (by using any smart values)  all options which are available in that custom field not for particular issue.

Thanks,

Raju

John Funk
Community Champion
September 1, 2022

Hi Raju,

It will be best if you create a new question in Community so more people will see it and be able to help answer. Thanks!

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events