Forums

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

API to fetch all issues from fixVersion

Gareth Johnstone October 16, 2018

I'm quite new to using JIRAs API, but basically, long story short, i need to get all the issues that have a fixVersion of x.x.x

 

How would i achieve this (I'll be using NodeJS)?

2 answers

1 accepted

2 votes
Answer accepted
Alexey Matveev
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.
October 16, 2018

Hello,

You would need to use the search Rest Api method:

https://developer.atlassian.com/cloud/jira/platform/rest/v3/?utm_source=%2Fcloud%2Fjira%2Fplatform%2Frest%2F&utm_medium=302#api-api-3-search-get

This method has the JQL parameter. You can pass any valid JQL query. For example:

fixVersion = yourversion
Gareth Johnstone October 16, 2018

Perfect! just what im looking for :)

1 vote
Gareth Johnstone October 16, 2018

Just a little extra context, I decided to use the npm package jira-connector`

 

That way its as simple as :

let query = {
    jql: 'fixVersion = 1.2.0',
    maxResults: 100,
    startAt: 0,
    fields: [
      'summary',
      'description'
    ],
    fieldsByKeys: false
}

jira.search.search(query, (err, issues) => { console.log(issues) }

 

Suggest an answer

Log in or Sign up to answer