The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

How do you access a Kanban board from a groovy script?

seisenhardt
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 26, 2016

I am trying to access the ranking of issues in a JIRA Agile Kanban board via a groovy script, but have yet to find a way to do so. I know I can get all of the issues, but the order that they are ranked in on the board is important for the automation I am trying to install.

Is there a way to do this using JQL in some way or, preferably, tools in place in the ScriptRunner add-on that would allow me to do this?

2 answers

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

1 vote
Answer accepted
JamieA
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 Champions.
February 26, 2016

All boards have a query, and the columns are normally statuses, so you can get the contents of any column. In terms of the ordering, this should just be ordered by the Rank global field, so you can add that to your "order by" clause.

If you want to run a query from a script you can do that, there are plenty of examples in the docs and elsewhere.

0 votes
JamieA
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 Champions.
February 26, 2016

If this relates to script runner, please add the script runner tag, so the right people see it.