The Git Integration for Jira add-on has added JQL operators and fields to query Jira using JQL and git context via the Jira search.
The Jira JQL has been extended as follows:
|Criteria Name||JQL Field Syntax||Description||Search Result Value Example|
|Git Commits Referenced||
||True or “” (empty string)|
|Git Branch||gitBranch in (Version-5.2, Version-5.3)||True for all issues referenced by a git commit in branch Version-5.2 and branch Version-5.3||Version-5.2, Version-5.3|
gitBranch in (master) AND resolution = Unresolved gitCommitsReferenced is not empty AND resolution = Unresolved