With the Automation plugin, is there a way to set the rank of an issue?

BrianW
Contributor
May 20, 2019

I see there is an API available to set rank, but I don't see how to change the rank via Automation.  Preferably I'd like to be able to send an issue to the top or the bottom rank so that it shows up at the top or the bottom of my agile board.

5 answers

1 accepted

2 votes
Answer accepted
BrianW
Contributor
February 25, 2021

While this still doesn't exist in Automation, I much later filed a support ticket about this and they made a good suggestion to use the "Send Web Request" action to just directly do the API call from Automation.  See the documentation below.  I have not tested this but it looks like it should work.

https://confluence.atlassian.com/jirakb/how-to-extend-automation-for-jira-with-rest-api-calls-1021217952.html
https://developer.atlassian.com/cloud/jira/software/rest/api-group-issue/#api-agile-1-0-issue-rank-put

Paul Hawxby
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 27, 2022

@BrianW did you figure out how to make this work? It appears to be all relative so unless you know the id of the issue at the bottom of the stack there's no way to do it. There doesn't appear to be a way to do "send to bottom"

BrianW
Contributor
January 27, 2022

In theory, you'd have to do a JQL query ordered by rank, then fish out the key of the one you want using Automation variables, then use that in your API call.

Like Alejandro Blanco likes this
Gennady Verdel
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 14, 2022

How is this an accepted answer?
The first link is broken and the second one allows you "to rank an issue before or after another issue". So are we supposed to get the lowest ranked issue and then to hook into issue creation and inject this put functionality? This is a frustrating experience to say the least.

Mark Michelman
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 3, 2023
0 votes
Robert Klohr
Contributor
February 2, 2022

duplicate post

0 votes
Robert Klohr
Contributor
February 2, 2022

I found this question in a few places so I wanted to update the threads with the information that there is an open feature request [JRACLOUD-77117] Action to rank issues to the top where you can add your vote.

0 votes
Paul Hawxby
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 27, 2022

Quite disappointing that 3 years later and this still hasn't been fixed. 

0 votes
Deleted user May 20, 2019

Hi Brian,

Thanks for the question, developer from Automation for Jira here.

We don't properly support rank actions, but we're already tracking this at https://codebarrel.atlassian.net/browse/AUT-919 (Due to a [bug in Jira Service Desk|https://jira.atlassian.com/browse/JSDSERVER-1367] you might need to open the linked issue in an incognito window to see it)

We've got quite a few higher priority items in our backlog at the moment so it will be a while before we can get to this, but we'll let you know when we get a chance to work on this.

Cheers,
Yvan

BrianW
Contributor
May 24, 2019

Ok, thanks.

Richard den Dulk August 25, 2022

Just to let you know I ran into the same absence of this function.

Shouldn't be so hard to get this working. We probably only need 'move to top' or 'move to bottom'. So the highest rank or the lowest rank.

Thanks for reading this. I doubt my remark will change anything in the priority of this issue after so many years (LOL).

Have a great day,

Richard

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events