Forums

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

Returning issues from epics that in turn are returned from a filter

Ragni Jayanthi March 2, 2021

Hello!

I am trying to return all issues from epics in one of my projects that have a specific label. The following doesn't work:

status not in (Closed, Done, Resolved, Dev) AND "Epic Link" in (project = ABC AND labels = XYZ) 

I am getting a syntax error:

Error in the JQL Query: Expecting ',' or ')' but got '='. (line 1, character 73)

I have a filter that returns the Epics, but using"Epic Link" in (Filter = 12345) doesn't work either. Get the same error message as above

 

PS: Is there a easier way to identify character 73 without sitting here counting characters?

3 answers

1 accepted

1 vote
Answer accepted
Kat Warner
Atlassian Partner
March 2, 2021

"Epic Link" in (labels = XYZ) is not valid JQL therefore your clause "Epic Link" in (project = ABC AND labels = XYZ)

I'm not sure how to combine a filter with the epic link search.

Kat Warner
Atlassian Partner
March 2, 2021

Looking through other community posts it looks like this may not available out-of-the-box. If you have Scriptrunner installed you will have additional JQL options but have a look through this post as it gives a few suggestions. 

 

I cannot check these for you as my JQL field uses the extra options provided by apps installed in my instance which may not match what you have available.

Like Ragni Jayanthi likes this
Ragni Jayanthi March 3, 2021

Thank you Kat! From the post you linked, this worked for me. I really appreciate it.

issueFunction in linkedIssuesOf("filter = '12345'", "is epic of") AND status not in (Closed, Done, Resolved, Dev)

badrinathm
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 29, 2022

I try to do this but I get the error "Could not find any issue link type having either inward or outward description : is epic of" Remove argument to search all link types ...etc

1 vote
Ragni Jayanthi March 3, 2021

Update:

This worked: issueFunction in linkedIssuesOf("filter = '123456'", "is epic of") AND status not in (Closed, Done, Resolved, Dev)

1 vote
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 2, 2021

Hi @Ragni Jayanthi  -- Welcome to the Atlassian Community!

JQL is not a SQL, so the syntax you noted cannot work with out of the box Jira:

..."Epic Link" in (project = ABC AND labels = XYZ) 

To do what you ask with out-of-the-box Jira, you would need to find the epics first, and then create your own CSV list to find the remaining issues, in two steps:

  • project = ABC AND labels = XYZ ... to get your epics, such as EPIC-1, EPIC-2, EPIC-3 and then substitute that into the other query
  • status not in (Closed, Done, Resolved, Dev) AND "Epic Link" IN (EPIC-1, EPIC-2, EPIC-3)


Best regards,

Bill

Ragni Jayanthi March 3, 2021

Thank you for the welcome Bill! The post Kat linked to below helped with what I was trying to do.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events