Jira - get issue rating via REST API

I'm trying to get the ranking of a Jira ID via REST :

This is the GET request which i'm sending:


I'm getting the key: customfield_10690, which is the rating field, but the value of this field is unreadable and unparseable, the value that i'm getting is:"customfield_10690":"0|i1qu83:"

What can i do?

1 answer

0 votes

I'm afraid that's valid data for a ranking field - it's a "lexorank" value defining an issue's place in a list compared with the ones around it.  It's useless on its own because it really is a definition relating to another value. 

There's an old joke in England about a horseman or motorist who is lost in the deepest countryside, and stops to ask for directions.  He asks the local "bumpkin" for help - "how do I get to London from here?".  The local's first response is "Arr, well, I wouldn't start from here if I were you".  When pressed, they say "Well, turn right at the red barn".

The second answer is technically correct, but useless without the context of where the red barn might be.  That's what a lexorank field on its own is - it's a direction, but without any reference to the starting point.

This means you have to think about what you actually want to do with this ranking data.  If it's for comparing with other issues from the same JIRA installation, then it could be useful (if you could work out how to read and compare it).  If you want it for something else, then I'm afraid it's useless to you because there's nothing to compare it with.

Suggest an answer

Log in or Join to answer
Community showcase
Teodora [Botron]
Published Thursday 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 ...

381 views 1 13
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