I have the following REST API call to retrieve epics and for some reason I get stories and bugs and a mix of issue except epics.
Has anyone encountered this before? Is issuetype=6 not for Epics? Thank you in advance!
Community moderators have prevented the ability to post new answers.
You rest call / JQL is not correct.
/rest/api/2/search?jql=project+%3D+DEV+and+issuetype+%3D+Epic&startAt=1&maxResults=1000
or
/rest/api/2/search?jql=project=ZAA and issuetype=Epic&startAt=1&maxResults=1000
Thank you Jeff! My query is now returning Epics and Bugs. The bugs are not related or linked to the Epics in any way. Why is that? I need my query to only return Epics.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
my best guess would be that your bugs have an Epic Name associated to them and that Jira is smart enough to realize these are considered Epics? I can't test this theory on my system though as I am running an older version of Jira Agile that does not support this. I would suggest working out your JQL query in the Issue Navigator, possibly with "and issuetype != Bug" and when you get what you want, copy that to your REST call.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You are filtering by "issuetype=6". Is "6" id of epic issue type?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.