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?