get all the translations for a specific custom field with REST API

I'm looking for a way to get all the translations for a custom filed using the REST API, because in the cloud version of JIRA I've no access to the DB or to the Java libraries as I have in the Server version.

For example I have a custom field cf[10102] translated in French, English, Russian and German

Is it available any API like

http://{{serverUrl}}/rest/api/2/gettranslations?customfiledid=10102

or similar?

2 answers

1 accepted

1 vote
Sam Hall Community Champion Mar 10, 2017

Hi Francesco,

Perhaps not quite what you want, but you can include the expand query parameter in requests and use it to request the names entity. This will give you a response with the (translated) names of any relevant custom fields.

For example you can do:

https://{{serverUrl}}/rest/api/2/issue/EXAMPLE-1?expand=names

The names returned will be translated according to the language preference of the calling user.

Sam

Hi Sam,

yes that's right, but I also would like to have all the translations.
For example I have a custom field 

"customfield_10200": "Read Only Comment", which is in English but I know that I've also a German and a French translation for this field.

How can I get these three translations despite my current English user?

 

Sam Hall Community Champion Mar 10, 2017

I think the answer given in https://answers.atlassian.com/questions/38064634 is still valid, sadly. There isn't an API resource to get all the translations as far as I know. 

Hopefully someone will post an answer if they know better.

I'm wondering if it would be possible to use PUT /rest/api/2/mypreferences to somehow cycle through the languages, calling the field names for each at a time. Sounds like a terribly hacky solution though! Sorry.

Yes I think so too, but thank you anyway for your help

I will think about your suggestion and, in case, do you know how to get a list of all the available languages in the current Jira?

Love u george cajio jr

Suggest an answer

Log in or Join to answer
Community showcase
Teodora [Botron]
Published Feb 15, 2018 in Marketplace Apps

Jira Inferno: The Nine Circles of Jira Administration Hell

If you spend enough time as a Jira admin - whether you are managing a single, mid-sized instance, a large enterprise one or juggling multiple instances at once - you will eventually find yourself in ...

1,175 views 6 19
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot