Search for issues where a field matches

Is it possible to do a query and take a field returned in that search to match fields in another search to return results?

To explain another way, I would like to run a normal query, for example issuetype=Epic and status = closed but then run another query to match a custom field in those results to be a match criteria to find results in another query. Say the field to match from the first query was issue key, and I want to then return results from the first query where the issue keys are used to check that they are not closed.

Something like run query issuetype=Epic and status = closed then for each issue returned return retults for issues where the issuekey is the issuekey from field in the query and then for thos return items that are not closed? Would this be possible with Grovey or something?

Not a great description but I hope you get the gist.



2 answers

1 accepted

0 votes
Accepted answer

would like to run it from the issue navigator.


in this case, it would be quite difficult. the queries in the issuenavigator only return complete issues, as seen in the result list. however the navigator has no way of accessing these issues.

so if you want to perform such an action you could probably only do this by creating a custom query word, which would get the parameter it would need to identify the issues (in the worst case you could even try to submit a whole querystring and then perform a query from within the custom query).

in the end you would get something like:

"issuekey in (custom("issuetype=Epic AND status = closed"))

where custom would return a set of issuekeys.

Do you want to run this as plugin code, or via the issue navigator?

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Jan 08, 2019 in Jira

How to Jira for designers

I’m a designer on the Jira team. For a long time, I’ve fielded questions from other designers about how they should be using Jira Software with their design team. I’ve also heard feedback from other ...

1,231 views 5 10
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you