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
Community moderators have prevented the ability to post new answers.
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?
After a couple of minutes the locale was right
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
I hope this could help others since this request is old.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
{{issue.request language.displayName}}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Community moderators have prevented the ability to post new answers.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.