Forums

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

JQL : Extract EPIC KEY of an issue

Franck LEVESQUE March 4, 2021

Hi,

We are developing an application in node.js which discusses with JIRA by jql request.

We don't find how to obtain the EPIC KEY for an issue.

The XML result of our request for issues contains only EPIC LINK.

Have you got an idea to customize this return XML ?

 

Thanks for your help!!

1 answer

0 votes
Bill Sheboy
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 Leaders.
March 4, 2021

Hi @Franck LEVESQUE  -- Welcome to the Atlassian Community!

For an issue (like a story, task, or bug) which has a parent epic, the Epic Link field is the key to that parent epic.  What are you seeing in the field?

Best regards,

Bill

Franck LEVESQUE March 5, 2021

Hi @Bill Sheboy ,

In this field i have an url with the Title of the EPIC.

 

Or when we send a request by our extern application, sometimes we have few EPICS which have the same Title or the same EPIC name ! That's why we would like to use only EPIC key which are unique.

Bill Sheboy
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 Leaders.
March 5, 2021

Sorry, I am unclear how you can do what you suggest if the value you use for Epic Name is not unique.  You would need something to match on.

Somehow your external app has information about epics (perhaps as the original source to create them?) and you may want to consider also storing the Key to make look-ups with JQL match to one-and-only-one issue.

Best regards,

Bill

Franck LEVESQUE March 9, 2021

Thanks for your help. Jira is managed by the client, so we only consum datas with REST api :(

They  often create EPICS with copy/past, that's why we havent got unique EPIC NAME, they modified only the title if they are not rigorous.

Bill Sheboy
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 Leaders.
March 9, 2021

Thanks for clarifying that information.  If you are getting data by the REST API, the key value in the Epic Link should be uniquely matched to the epic.

Which REST API call are you using?  Perhaps if it is a saved filter the column just needs to be added.  Or, you could use a different call to get all available fields.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events