Forums

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

getting all epics related to a release from jira rest api

Mehran
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 6, 2020

I can get all versions of a project and all epics too, but I can not relate this versions(releases) to the epics. 

what I want is: to get all epics which belongs to a version. is there a way to do so?

1 answer

0 votes
Bill Sheboy
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 7, 2020

Hi @Mehran -- Welcome to the Atlassian community!

Have you tried to from a JQL query and then call the REST API for it?  Maybe something like:

project = myProject
AND issueType = Epic
AND fixVersion = myVersion
ORDER BY Key

Then look at the examples here to make the REST API call for the query:

https://developer.atlassian.com/server/jira/platform/jira-rest-api-examples/

 

Best regards,

Bill

Mehran
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 7, 2020

thanks a lot for your answer. be glad to be part of this community.

it doesn't work for me , but I wanted for a known epic for example epic = 'Desktop' to become all the versions which they have issues in common. for example maybe a release(version) has no issues with the this epic. and this answer which uses issueType as Epic gets all epics, although it doesn't work for me

 

Tanx again.

Bill Sheboy
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 8, 2020

Hi @Mehran 

Thanks for the additional information, but I am now confused what you are trying to accomplish.

I can tell you that JQL is not SQL; it is much simpler.  It seems you are trying to form a complex query with joins that JQL cannot perform.  And so, the REST API couldn't call such a query.

To form such a query you would need one of the marketplace add-on tools which improve the query language, such as ScriptRunner.

Suggest an answer

Log in or Sign up to answer