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.
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):
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:
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.