Automation - How to create a rule that: Sets all new bugs to top of backlog within 1 project

Dwayne
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!
September 16, 2024

Within 1 project, we want to ensure newly created bugs are placed at the top of the backlog. 
This allows us to review all new bugs when we're in refinement. 

Currently, my best attempt at an automation rule is:

  • When: Issue Created
  • Isue Type Equals: Bug
  • Then: Move issue to board (backlog)

So far, I haven't been able to find components that can change the rank.

 

 

2 answers

1 vote
Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 17, 2024

Hi @Dwayne -- Welcome to the Atlassian Community!

To change the Rank of an issue, please call the REST API endpoint using the Send Web Request action.  The essential rule outline could be:

  • trigger: issue created
  • condition: issue type is Bug
  • action: lookup issues with JQL, to return all backlog issues with an ORDER BY Rank ASC clause.  Please note well: this will only return the first 100 issues, but that is not relevant as only the first one is needed.
  • action: Send Web Request to call the Rank Issues endpoint
    • In the data passed, the issue to be re-ranked higher is {{triggerIssue.key}} and it should be placed before {{lookupIssues.first.key}}

If you want to try this method, here are some references to help:

https://community.atlassian.com/t5/Jira-articles/Automation-for-Jira-Send-web-request-using-Jira-REST-API/ba-p/1443828

https://developer.atlassian.com/cloud/jira/software/rest/api-group-issue/#api-rest-agile-1-0-issue-rank-put

Kind regards,
Bill

0 votes
Mohanraj Thangamuthu
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 16, 2024

Hello, Good day. It looks like your requirement is similar to https://jira.atlassian.com/browse/AUTO-850. You can try using REST API calls to change the rank. Thanks

Dwayne
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!
September 17, 2024

Thank you for your answer Mohanraj!

From what I understood, the API calls only allow you to update visible fields. As far as I know "Rank" is not a visible field.

How would one use the API call to update the rank relative to the highest item on a backlog?

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events