Forums

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

Custom field not displayed correctly in Email notifications

Fabien Giquiaud
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 15, 2023

Hello Everyone,

I have an automation in Jira project that sends an email to users when a ticket is created (under certain conditions).

In this notification I have a custom field "Location" and recently instead of displaying for example "France" it displays somthing like this:

Location: {self=https://issuetracker.xxxxxx.com/jira/rest/api/2/customFieldOption/20706, value=France, id=20706, disabled=false, child={self=https://issuetracker.xxxxxxxx.com/jira/rest/api/2/customFieldOption/20776, value=Paris, id=20776, disabled=false}}

Do you know by any chance where this could come from? It used to work very well. In the automation this is what is indicated to get the information:

Location: {{issue.Location}}

Thanks in advance for any help / advice

Kind regards

1 answer

1 accepted

0 votes
Answer accepted
Renzo Arriagada
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.
March 16, 2023

Hi @Fabien Giquiaud !

It looks like something may have changed in your custom field and/or server version.

To access the raw value of a field which is not a text field you should add .value at the end as follows:

  • Location: {{issue.Location.value}}

This should display "France" according to the provided example.

 

Hope this helps!

Renzo from Servicerocket.

Fabien Giquiaud
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 24, 2023

Hi @Renzo Arriagada 

Thank you very much for your help! It solved my issue.

Have a nice day

Suggest an answer

Log in or Sign up to answer