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

Accepted Answer
0 votes

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
Posted Tuesday in Jira

Looking for anyone who made the switch to Data Center

The Jira Marketing team is putting together an ebook on migrating to Data Center. We're looking for pro tips on how you staffed your project team and organized your Proof of Concept. Share yo...

50 views 0 2
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