How to get rank number not using REST?

How do you get an issues rank number using the SDK? I've seen REST examples just need something like:

issue.getRank();

Also is it possible to get the rank number from change history?

2 answers

0 vote

Hi Justin,

It appears this is the way to get the rank information programatically now in new versions of JIRA.  Take a look at the Communities post  Changing rank through the API.

The Bob Swift CLI may be of assistance and you may be able to integrate that into what you're trying to do.

Cheers,

Branden

Brandon, thanks for the reply but I can't see how to do this using code. I am trying to write a plugin without using the REST API.

0 vote

Hi Justin,

I think what you are looking for here is known as the JAVA API.   This is not the same as the REST API, but it can provide you a programmatic framework to work with Jira.

You can find more on this at https://developer.atlassian.com/jiradev/jira-apis

You will note that there are published and updated JAVA API specs for Jira Core and Jira Service Desk.  However at the moment, we do not appear to have an updated JAVA API document for the Jira Software versions, which stated with Jira 7.   Jira Software is the component that handles aspects like lexoranking.

There is an open bug ticket to update this documentation at https://jira.atlassian.com/browse/JSWSERVER-15321

There are older Jira Agile JAVA API listed there, and those might be closely related to the current versions, but I cannot guarantee that the documentation for all aspects there are still applicable to the Jira Software versions.

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Bridget Sauer
Published Thursday in Marketplace Apps

Calling all developers––You're invited to Atlas Camp 2018

 Atlas Camp   is our developer event which will take place in Barcelona, Spain  from the 6th -7th of   September . This is a great opportunity to meet other developers and get n...

268 views 0 6
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