Forums

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

User language as smart value

Martin Böhme
Community Champion
July 26, 2021

Hi,

I want to send an e-mail to the reporter of a Jira SM ticket by using the "Send E-Mail" action of Automation for Jira.

If the user selected German as their preferred language in their profile settings, the text in the e-mail should be in German. If the user selected any other language, the text should be in English.

I would implement this by having a simple If-Else-Block that checks for a smart value / variable that contains the reporter's language.

I need to implement this for Cloud as well as for Data Center.

 

For Cloud, it should be fairly easy because the language the reporter used when creating the ticket is stored in the dedicated "Request language" field. ✅

But in Data Center, this field does not exist (at least not until Jira SM 4.18). And I can't find any smart value that contains the user's language setting. 😢

 

Does any one have a solution for this?

Best,

Martin

4 answers

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

1 vote
Answer accepted
Jörg Wolfinger
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!
April 16, 2025

Perhaps the return value "locale" of the Get user API Call
helps.
Out of curiosity I tried {{issue.reporter.locale}} and i got a result.

Then I changed my language settings to test it
The API call gives me my new locale, the smart value still my "old" one

Perhaps this will only take some minutes?

Jörg Wolfinger
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!
April 16, 2025

After a couple of minutes the locale was right

2 votes
Neenu jose March 23, 2023

Any feasibility to implement it in Server/data center? 

1 vote
Martin LALONDE
Contributor
February 20, 2024

I ran into the same problem trying to use smart value with an automation in Jira Cloud. I've tried many combination of the below smart value

{{issue.request language}}

{{issue.request language.name}}

{{issue.request language.value}}

{{customfield_xxxx}} 

{{issue.Request Type.request language}}

{{issue.Request Type.request language.name}}

{{issue.Request Type.request language.value}}

Then to compare those, I've use either en or English and always came back false.

I've change my validation with a JQL request and this is working perfectly

image.png

I hope this could help others since this request is old.

Pepijn Szekér _GIM_
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!
May 24, 2024

{{issue.request language.displayName}}

0 votes
SilkeS
Community Manager
Community Managers are Atlassian Team members who specifically run and moderate Atlassian communities. Feel free to say hello!
April 16, 2025

This topic has been locked because the thread has become a bit dated. If you’d like to keep the conversation going or have additional questions, we encourage you to start a new topic. You can read more about necro posting (“raising threads from the dead”) in our  Community Guidelines .

Thanks!

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

TAGS
AUG Leaders

Atlassian Community Events