Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,559,418
Community Members
 
Community Events
184
Community Groups

JQL for bugs in a list of Epics

Nari Man
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.
Apr 24, 2023

Hi, I am trying to write a JQL that returns all the bugs in a list of epics. I have created a query that returns these epics. filter = "my epics". 

I build my query like this 

issuetype = Bug and "Epic Link" in (filter = "my epics") and I get

"Error in the JQL Query: ...."

If I use the epic issuekey instead of the filter, I get results. 

example: issuetype = Bug and "Epic Link" in (projectA-1, projectA-2) returns all the bugs in these 2 epics. 

 

I also have the scriptrunner but do not know how to use it for this scenario. 


Can I get some help please? 

 

2 answers

1 accepted

1 vote
Answer accepted
Trudy Claspill
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Apr 24, 2023

Hello @Nari Man 

You need to use the issuesInEpics() function.

issueType = Bug and issuefunction issuesInEpics(<filter>)

I know that if you replace <filter> with the JQL that you used to select your Epics, and put that JQL in quotes, then the above should work.

I don't have a Jira Server/Data Center instance where I can test this out, so I don't know if you can replace <filter> with "filter = 'my epics'".

Nari Man
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.
Apr 27, 2023

the issue was with the quotes around "my epics". I typed the query from scratch and it worked. 

Thanks

Hi 
You can use epic link in JQL. like epic link = " Test" and issuetype = bug.

this will list out all the child issues for the epic and whose issue type is Bug

Suggest an answer

Log in or Sign up to answer