Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to update the rank field using rest api?

Yash_reddy
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.
February 23, 2019

I want to update the rank field value as number instead of alphanumeric pattern.Is it possible to update the filed.If possible how to proceed

2 answers

0 votes
Nazrio
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 28, 2023

1. Use "/rest/api/2/field" this end point and search word rank. Here it will give description of each and every custom field (Ex: customfield_10114)

2. Use  "/rest/agile/1.0/issue/" end point to search the field from Step 1 (Ex: customfield_10114). So the value to this field would be the rank.

0 votes
Shwetha Suvarna
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 23, 2019

Hi Pinky,

We cannot change the Value of Rank to a numeric value Via API. The rank of the issue can only be moved before or after a certain issue.

Please try the below query and let me know the results:

PUT /rest/agile/1.0/issue/rank

Data to be passed :

header : 'Content-Type: application/json' 
 Body example :
{
  "issues": [
    "PR-1",
    "10001",
    "PR-3"
  ],
  "rankBeforeIssue": "PR-4",
  "rankCustomFieldId": 10521
}

Moves (ranks) issues before or after a given issue. At most 50 issues may be ranked at once.

Please follow the article api-rest-agile for more details.

Best regards,

Shwetha 

Ganesh chandra August 12, 2021

Hi @Shwetha Suvarna What is rankCustomFieldId in this request and how can i find my rankCustomFieldId from ticket/jira?

i am getting this error :


"errorMessages": [ "A rank custom field with ID '10,973' could not be found." ],

 

please help me to resolve this.

 

Thanks in advance.

Patrick Lachance
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 17, 2022
  1. Using Chrome, navigate to the backlog where you can drag and drop issues to change rank.
  2. Right click in the back of the Jira page and select "Inspect"
  3. A window/pane will open.  Click on the Network Tab
  4. Now back into Jira change the ranking of an issue using drag and drop.
  5. If you look on the network tab, a PUT request named "rank" will show up
  6. Select it and look at the Payload.
  7. The rankCustomFieldId is described.
Like Bruno likes this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events