Forums

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

Automation emailing a choice from a dropdown list

Dennis_H
Contributor
April 11, 2024

I'm using automation along with an issue collector that when filled out will send an email when the issue is created. I'm able to get automation to email other fields (name, email, summary) but it won't send the selection made in the dropdown list on the collector.

The name of the field is location. In the email setup I tried

 

# of locations = {{issue.location[Dropdown]}}
# of locations = {{issue.location}}
# of locations = {{issue.location[Dropdown].name}}
# of locations = {{issue.location[Dropdown].number}}

 

None of them put the selected # in the email. What is the correct syntax to send the # the user selects for that field?

1 answer

0 votes
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.
April 11, 2024 edited

Hi @Dennis_H 

First my disclaimer: I have not used issue collectors in a long time.  With that out of the way...

Just to confirm, you mapped the collector to your multiple select, custom field, correct?

If so, and that field is named location, you could try this: {{issue.location.size|0}}

The field is essentially a list of selected values and so the size function should work.

Kind regards,
Bill

Dennis_H
Contributor
April 11, 2024

I copy/pasted the text you provided and it just gives me 0 as the result.

 

This is a single drop down select list.

Dennis_H
Contributor
April 11, 2024

Ok, I changed the field name to the ID# of the field and it worked.

 

# of locations = {{issue.customfield_XXXXX}}

Like Bill Sheboy likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
atlassian, atlassian government cloud, fedramp, webinar, register for webinar, atlassian cloud webinar, fedramp moderate offering, work faster with cloud

Unlocking the future with Atlassian Government Cloud ☁️

Atlassian Government Cloud has achieved FedRAMP Authorization at the Moderate level! Join our webinar to learn how you can accelerate mission success and move work forward faster in cloud, all while ensuring your critical data is secure.

Register Now
AUG Leaders

Atlassian Community Events