The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Answer accepted
Jack Brickey
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.
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
TAGS
AUG Leaders

Atlassian Community Events