GET issue links for epic

I am using REST service to GET data from the JIRA API.

Everything is going fine execpt for one thing, and that is that i can't get the issue links from the Epic's, i have the following structure in JIRA:

Project(type = 24M Project) –> Epic(type = Epic) –> issues (type= story,bug,spike etc.)

The project can contain multiple epics and the epic can contain multiple issues.

The problem now is i CAN relate the issues to the Epic through the Epic Link, but i can't find the Issue Link to relate the Epic to the Project. This happens when i use a filter for the JQL query.

When i lookop just one single Epic in the REST API i do get the information that is needed, i then get the outwardIssue which contains the project-id and summary that i need...

So the question is: how can i get the issue links for the Epic without having to look them up separately?

 

To make the example clearer i have a part of the JSON code when i call a REST API with only 1 bug:

 

"issuelinks": [{
				"id": "139648",
				"self": "https://[companyname]/rest/api/2/issueLink/139648",
				"type": {
					"id": "10003",
					"name": "Relates",
					"inward": "relates to",
					"outward": "relates to",
					"self": "https://[companyname]/rest/api/2/issueLinkType/10003"
				},
				"outwardIssue": {
					"id": "183899",
					"key": "CLIQ-485",
					"self": "https://[companyname]/rest/api/2/issue/183899",
					"fields": {
						"summary": "P33802",

And this is just what i am looking for in the complete REST API call that i make with this JQL filter: https://[companyname]/rest/api/2/search?jql=issuetype%20in%20(story,%20bug,%20spike,%20%2224M%20Project%22,%20Epic)%20AND%20project%20in%20(10003,%20CLIQ,%2010900,%2011207)%20OR%20%22Epic%20Link%22%20=%20MKS-22287%20AND%20ISSUETYPE%20in%20(story,%20bug,%20spike)%20AND%20project%20=%2010603

1 answer

1 accepted

Does not need answering anymore.

I found out that the API returns only the first 1000 issues due to a limitation in the internal server JIRA settings.

Also i had to change my JSONPath query to get the information, the only problem that i still have is that because it is in JSON and arrays I get for example the KEY like this: 

["CLIQ-485"]

Anyone who has a solution for this? I need it to be without the brackets and quotes for joining tables in my DB.

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

3,081 views 13 18
Join discussion

Atlassian User Groups

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!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot