Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to identify the original "Epic" type via the REST API

James Sear
Contributor
June 24, 2019

I was wondering if anyone knows whether it's possible to identify the original special "Epic" issue type via the REST API.

I've found that it's possible to rename Epic to something else, meaning that via the API, I can't identify which issue type is the original "Epic" type.

I have tried the following APIs:

  • Get all issue types (/rest/api/3/issuetype)
  • Get all projects (/rest/api/3/project/search)
  • Get issue type (/rest/api/3/issuetype/{id})

Each provides the same issue schema back:

{
"self": "https://api.atlassian.com/ex/jira/262560a0-5ce0-4e72-990e-62464cbb26e6/rest/api/3/issuetype/10000",
"id": "10000",
"description": "A big user story that needs to be broken down. Created by Jira Software - do not edit or delete.",
"iconUrl": "https://jpsear1.atlassian.net/images/icons/issuetypes/epic.svg",
"name": "Renamed Epic",
"subtask": false
}

 

Unfortunately, there is no where to tell this is a core "Epic" type. Any ideas?

2 answers

7 votes
Federico Rela
Contributor
June 10, 2013

issuetype not in subtaskIssueTypes()

pelizza
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
February 4, 2016

Great answer, but not for this question smile

By the way, it helped me on another situation...

Jeret Shuck
Contributor
December 12, 2019

Great answer! First click, first thing that worked for me. 

2 votes
Jobin Kuruvilla [Adaptavist]
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
August 19, 2012

JQL Tricks plugins has a hasSubtasks method which you can use in this query. It is a commercial plugin, btw!

Russell Howe
August 19, 2012

Yeah, I saw that. This isn't a problem which is worth any money to me, unfortunately.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events