I am using Jira cloud and thus I couldn't get the REST API Browser add on to develop my query.
I had created another question, but it was flagged as SPAM because I tried to insert the original answer I found here to bestow credit where credit is due.
I have found on google the following very nice jql that returns all the epics from a given project.
I'm doing a trial and error approach to get something like the JSON structure bellow, my current iteration is:
issues : [
Thanks in advance
You can actually get epics, stories and issues in one Rest Api Call to /jira/rest/api/2/search. Then you can work on the received json and get all data you need. Sprint is just a cutsom field. Epic Link is also a custom field. Stories connected to issues by links. You can get all the information from the return JSON and process it.
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
We're bringing product updates and pro tips on teamwork to ten cities around the world.Save your spot