Forums

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

JQL Question

Eric Roetenberg
Contributor
March 7, 2022

Hello 

 

Help!!

I need to have a JQL that:

that only shows userstory if:
project category != SAFe
Epic link != Empty
The Epic above has as Reporter X

I have this now but it does not work
category = SAFe AND "Epic Link" != EMPTY AND reporter = 62178db2802e760075497858

How do I get the reporter from the parent epic into the JQL?

1 answer

1 accepted

0 votes
Answer accepted
Mark Segall
Community Champion
March 7, 2022

Hi @Eric Roetenberg 

If your goal is to return a batch of stories, bugs, tasks, etc. whose Epic Reporter is x, you're not going to be able to do so natively.  Without 3rd party apps, your best bet is to create a custom user field to capture the epic reporter on the child issues. Then create an automation like this:

  • TRIGGER: Field Value Changed (Epic Link)
  • ACTION: Edit Issue (Your Custom Epic Reporter Field)

From here you could then use this query (note - use IS NOT EMPTY rather than != EMPTY)

Category != SAFe AND "Epic Link" IS NOT EMPTY AND <Custom Epic Reporter Field> = 62178db2802e760075497858
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 7, 2022

Hi @Eric Roetenberg 

Yes, and...to Mark's answer...How often do you need to perform such a query?

  • Need one time: search for the epics with that reporter, grab their issue keys, and use that directly in a search.  For example:
Category != SAFe AND "Epic Link" IN (firstEpicKey, secondEpicKey)
  • Need often and have money to spend: investigate JQL or reporting marketplace addons, as Mark noted
  • Need often and cannot purchase addons: investigate the custom field solution approach Mark noted

Kind regards,
Bill

Suggest an answer

Log in or Sign up to answer