Forums

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

Fill in a custom drop-down list field from an e-mail

Yannick TEMPORAL August 6, 2024

Hello,

I created a project with 3 custom fields:

Fields.png

I need to be able to create a ticket from an email and extract these 3 custom fields from the email. Using an automation and regular expressions, I managed to fill in the "Immeuble" and "Locataire" fields from the email, as these 2 fields are short text. However, I have a problem with the " Type de demande" field which is a drop-down list:

Regexp.png

Could you tell me how to fill in the "Type de demande" field from an e-mail?

Thank you very much.

2 answers

1 accepted

1 vote
Answer accepted
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.
August 6, 2024

Hi @Yannick TEMPORAL -- Welcome to the Atlassian Community!

To select the value for the edit, please use advanced edit with JSON for the field: https://support.atlassian.com/cloud-automation/docs/advanced-field-editing-using-json/#Single-select-custom-field

For example:

  • remove the selection of Type de demande from the Edit Issue field list
  • expand the More Options section
  • enter JSON to set your value, such as with this, substituting in your field's custom field id and the smart value expression:
{ 
"fields" : {
"customfield_12345" : { "value": "smart value expression" }
}
}

To find the custom field id for your field, please use this how-to article:

https://support.atlassian.com/cloud-automation/docs/find-the-smart-value-for-a-field/

Kind regards,
Bill

0 votes
Yannick TEMPORAL August 7, 2024

It works: @bill Thank you very much
I just had to create a variable to use in JSON:

{
"fields" : {
"customfield_10036" : { "value": "{{TypeDemande}}" }
}
}

Suggest an answer

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

Atlassian Community Events