Forums

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

How to grab column order for Kaban? JIRA REST API

Mark Ran
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!
July 16, 2020

I'm trying to use the JIRA Rest API to grab information about issues. The issue's status category name(what column they are located under) I can fetch, but I'm having troubling ordering the column names. I want to get them in the same order as how they appear in the Kanban board. I couldn't do it alphabetically since Done would come before In Progress, and if I do it by order of appearance there is a chance that Done would yet again come before In Progress. 

1 answer

1 vote
Daniel Eads
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 16, 2020

Hi Mark, welcome to the Community!

The answer to this depends on if you're looking at a Next-Gen or Classic project. In a Classic project, the columns are based on JQL filters and could technically differ from whatever statuses the issues they contain are currently in. Next-Gen boards are more simplified and simply match the issue status name of the issues within.

A quick way to determine this is by checking the side panel - Next Gen projects will tell you down in the lower-left corner of the screen (when the sidebar is expanded):

image.png

Having given the caution that Classic column names can be mismatched from the statuses they hold (and that they could hold multiple statuses), we can move on to the API.

From what you've said, it sounds like you may have already encountered the Get Configuration endpoint:

https://developer.atlassian.com/cloud/jira/software/rest/api-group-board/#api-agile-1-0-board-boardid-configuration-get

In the response you get, the columns object returns an array (the elements of which are the column names and the statuses). The index values of the array should match the order on the board.

Cheers,
Daniel

Suggest an answer

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

Atlassian Community Events