Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 19:30 UTC, the site will be undergoing scheduled maintenance for a few hours. During this time, the site might be unavailable for a short while. Thanks for your patience.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

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

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
AUG Leaders

Atlassian Community Events