Forums

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

How to determine the Kanban Board an issue was resolved in via JIRA API

Trozza
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 18, 2019

The Problem / Challenge

I want to work out the Kanban Board (rapidViewId) an issue was marked as Resolved (Done, Fixed etc) in using the JIRA API.

What I've tried:

  • I've called the rest and agile endpoints for an issue to get its details, trying to find some details like you get for if an issue was resolved in a sprint. I can't seem to find anything which links an issue to the board it was closed in or linked to.
  • I've done 'expand=changelog' on the rest API and I can see when it was changed from In Progress to Done but it doesn't link it to the board it was done in.

Possible ideas but unsure how to do:

  • Thinking if it's possible to find all the boards which sit under a project and then finding all the issues in that board as an option.
  • This process is run as a batch job so we are able to call the API multiple times and doesn't need to be fast.

Limitations on Solution:

I work for a company so I don't have flexibility on the following:

  • Our JIRA version is 7.6.6 and aren't upgrading soon.
  • We can not use any Marketplace Plug-Ins.

1 answer

0 votes
Warren
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.
July 19, 2019

Hi @Trozza 

The logic under "Possible ideas" isn't quite right - a board is just a view into some data, so boards don't "sit under a project", they could get data from multiple projects.

If I understand your requirements correctly and you know the board id, this might work :

  1. Get all issues associated with a specific board, using this API call
  2. For each issue, use expand=changelog as you tried

If this doesn't give you what you're after, let me know what I'm misunderstanding

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events