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.

Thanks

Chris.

2 answers

1 accepted

would like to run it from the issue navigator.

Thanks

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 Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

2,870 views 12 18
Join discussion

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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot