We are using a regular stand alone JIRA server.
A customer has set his own language to something different than English.
If I try to use the REST interface (or more specific the python JIRA library) JIRA expects the names to be in his language not English.
So how can I change the language back to English for only those requests that my script tries to do in his name?
In different words:
Connecting to the web interface: USER LANGUAGE
Connecting to REST-API: ENGLISH
Dear @Cyril_Bitterich ,
I first thought about changing the users "locale" with a PUT /rest/api/2/user, then perform your action and change it back to the original value. Unfortunately this REST method cannot alter "locale". And I think Atlassian will not enable it in the near future: See this similar issue: JRASERVER-46058. :(
What you can do but is absolutely NOT SUPPORTED and of RISK is to alter that value within the DB. (so I didn't recommend this, did I?)
So long
Thomas
@Thomas DeilerNo access to the DB either. :(
So it seems the only way to get certain locale is to change it with the user and this locale sticks?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
yes
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This has already been discussed here. Please take a look.
Hope this helps!
Warm Regards,
Raja
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Sorry, but that does not help me at all.
First: I don't write a plugin but an external script.
Second I am using the REST API and not internal Java classes in the server.
So if you can point me to a place in the REST API where I can access and set a locale for the communication it would be helpful. But for now I get my answers in the users locale. Which differs even from the system default locale.
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.