Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,361,334
Community Members
 
Community Events
168
Community Groups

API to get the translations of priority and other Issue Attributes

Edited

Hi everyone,

I'm on Cloud and trying to find a way to get the translation mapping for Issue Priority (and the other issue attributes) through the REST APIs but I can't find anything that can work. I'm configuring the translations through https://<my_cloud_instance>/secure/admin/ViewTranslations!default.jspa?issueConstantType=priority

Capture1.PNGWhen I use translated values like that I receive them when using the "get issue" REST (/rest/api/2/issue/<issue_key>) but I only get the translated value and there is no way for me to get the original value based on this.

{"self":"https://<my_cloud_instance>/rest/api/2/priority/2","iconUrl":"https://<my_cloud_instance>/images/icons/priorities/high.svg","name":"Translated High","id":"2"}

 

I need it to create a JQL query using the original name because priority = "Translated High" doesn't work, it requires to be priority = "High"

Capture2.PNG

Any ideas will be appreciated.

Thanks,
Georgi

1 answer

Hi,

Did you try the "name" property from /rest/api/latest/field?

Moreover, it has "clauseNames" which is basically the field name options that you can use in JQL query

Hi Alexey,

Thanks for your reply but I don't need the actual name for the property field, I need the translation mapping for the values of the field. In my example I need to know that if I get the priority "Translated High" it corresponds to the original value "High".

If I use the /rest/api/latest/field API all I get is how to use the priority field which I'm already doing and no information about the values or am I missing something?

{"id":"priority","key":"priority","name":"Priority","custom":false,"orderable":true,"navigable":true,"searchable":true,"clauseNames":["priority"],"schema":{"type":"priority","system":"priority"}}

Thanks,
Georgi

Oh, sorry.

Is there a reason why you can't use priority ID in the JQL search query? It's the most robust option

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
Community showcase
Published in Jira Software

An update on Jira Software customer feedback – June 2022

Hello Atlassian Community! Feedback from customers like you has helped us shape and improve Jira Software. As Head of Product, Jira Software, I wanted to take this opportunity to share an update on...

5,068 views 18 32
Read article

Atlassian Community Events