Get defects linked to Stories / EPIC

Ramesh Babu January 13, 2020

Hi, 

I'm trying to create a filter to get the defects that are linked to stories/EPIC. Can you guys help me in providing me a query for getting the defects that are linked to my US. 

BDW we're using Jira v7.13.11 and I don't have "IssueFunction" parameter. 

Thanks 

Ramesh

2 answers

2 accepted

0 votes
Answer accepted
Jack Brickey
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 13, 2020

If your goal is to find all issues that has one or more links to other issues then you can use the IssueLinkType JQL function. That is you can incorporate the following into the rest of your JQL...

issuelinktype is not empty

now you will want to add in the Epic part to if you want to find issues that are associated w/ Epics...

issuelinktype is not empty OR "epic link" is not empty

so you might end up w/ a query something like this...

project = myproject and issuetype = bug and (issuelinktype is not empty OR "epic link" is not empty)

Ramesh Babu January 14, 2020

@Jack Brickey - Thanks for the answer. I was able to retrieve all the defects linked to my stories / Epics with your query. 

Like Fernando Bordallo likes this
Albert Arul Prakash Rajendran October 3, 2021

Jack Tried using is not empty in my query. However i am getting this below error

The operator 'is not' is not supported by the 'issueLinkType' field.
What could be the reason for this issue?
Anything i am missing.
My query is: issuetype in (Defect, Bug) and issueLinkType is not EMPTY 
0 votes
Answer accepted
Fernando Bordallo
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 13, 2020

Hello @Ramesh Babu

I'd go with something along the lines of the following:

  • specify project
  • specify epiclink (Epic's key)
  • specify issuetype

A hypothetical scenario would be:

  • project = TEST
  • epiclink = TEST-1
  • issuetype = BUG

Resulting filter: project = TEST AND epiclink = TEST-1 AND issuetype = BUG

Ramesh Babu January 14, 2020

@Fernando Bordallo - Thanks for the answer. I was able to retrieve all the defects linked to my stories / Epics with your query. 

Like Fernando Bordallo likes this

Suggest an answer

Log in or Sign up to answer