Hi,
Can anybody suggest how to retrieve the Reporter's language so that I can use it in a Groovy Script condition?
I tried this:
issue.get("reporter")?.language=="German"
but it does not work.
Thanks for help
Paul
@Paul Wilkinson ,
In a JMWE groovy script, you can use this code:
import com.atlassian.jira.user.UserLocaleStore;UserLocaleStore localeStore = getComponent(UserLocaleStore);def locale = localeStore.getLocale(issue.reporter);locale.language == "de"
Hi @Paul Wilkinson
Perhaps this issue will be of help to you
https://community.atlassian.com/t5/Jira-questions/How-to-find-User-s-Language-in-Jira/qaq-p/1101468
And most likely this in scriptrunner
https://community.atlassian.com/t5/Jira-Software-questions/how-could-I-do-to-get-the-jira-language-with-scriptRunner/qaq-p/1946006
Thanks for you fast reply.
I found that suggestion but I do not understand how to use it in groovy script.
Can you suggest how?
@Paul Wilkinson where do you place that code you want to write? On a PF within a workflow? On a listener? Which app do you use?
It works.
Thanks a lot
It looks like you're new here. Sign in or register to get started.