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 Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Thursday in Jira

5 ways you can make the most of Jira Software and Bitbucket Cloud

As part of the Bitbucket product team I'm always interested in better understanding what kind of impact the use of our tools have on the way you work. In a recent study we conducted of software devel...

70 views 0 5
Read article

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