Forums

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

Change JIRA Rest Api output locale / Language

LK
Contributor
May 12, 2017

Hi all,

I'm using the jira rest api and have a problem with localized output. 

Example: A user has set his locale to "de_DE", so an open issue woud show as "offen" (german for open) in the api output, whereas with "en_US" it would show as "open". Is there a way to change the rest api locale without changing the users jira locale? something like [api request]&locale=en_US or something similar would be great.

Thanks in advance

3 answers

1 vote
Andreas November 21, 2019

No answer since more than 2 years? Does anybody know if there is a feature like that? Would be great :-)

Jose Luu
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!
February 27, 2020

Would be great to have an answer, API should not be locale dependent.

0 votes
Julien MALLARD March 12, 2024

Hi everyone

One way is described here, working on Cloud https://jira.atlassian.com/browse/JRACLOUD-71793.


I was able to verify that the use of headers made it possible to obtain the values in the desired language, using both headers :
'Accept-Language': 'pl',
'X-Force-Accept-Language': 'true'

More information here : https://developer.atlassian.com/cloud/jira/platform/rest/v3/intro/#special-request-headers

0 votes
Hassan Zakeri
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!
September 27, 2020

hi Leonard, the behavior is this: API output is based on user's locale set in their profile. And, JIRA does not permit changing locale via Rest API:

https://community.atlassian.com/t5/Jira-questions/How-to-temporarily-set-the-languange-when-using-the-REST-API/qaq-p/1011058

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events