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
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.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.