Hello,
Is there a way to have a JIRA query (JQL) to find the list of issues that has code commit associated with it ?
Please advise.
Thanks !
This works for me: development[commits].all > 0
This worked for me. None of the others did. Thanks, Aida!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This works for me as well - please update this to be the "accepted" answer. Maybe the old syntax, `issue.property[development].commits > 0` worked in older versions, but this seems to be the syntax for "current" (as of Feb 2018) for JIRA Cloud.
Many Thanks!!!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Where did you find this in the docs?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
development[commits].all > 0 - perfect, thanks a lot!!!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Note that as of today (September 16, 2019):
development[commits].all > 0
works only for Classic Jira projects. NextGen projects do not appear to support this JQL feature.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Magdalena Michalakas of today (2019-09-19) at least, it is not in the page you linked: that page has no reference of either “property”, “development” or “commits”.
Additionally, the `development[commits].all > 0` query works (at least for classic jira projects), but is marked by jira as invalid (red cross instead of green check), and prevents JQL autocomplete from working if you want to add other criteria.
Edit: found it in the documentation in another page I found via a thread linked to this one: https://confluence.atlassian.com/jiracorecloud/advanced-searching-developer-reference-967312946.html
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This document is not accessible, it's not opening. Issues are not having property called development...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@sgautrin Sorry, it seems that the info was moved to a separate page and is now here: https://confluence.atlassian.com/jirasoftwareserver/advanced-searching-development-fields-reference-973491363.html
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Magdalena Michalak The page you've indicated covers Bitbucket, Bamboo, Crucible; is Github supported? I am seeing weird behavior when querying for "development[commits].all > 0" in my Jira instance with Github integration.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
My apologies for the noobness of the reply.
I am looking for a JQL query that will list the branch that was referenced in a Git Commits (or Git Roll Up).
The "development[commits].all > 0" does not seem to pull any results. My guess is I need to refine the criteria, but it is not clear where I should begin.
BTW: We use the JIRA server, not a cloud version.
And please no Add-on solutions, as Add-ons are not affordable nor sustainable over the longer term of our projects.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Casey Maynard -
I see you are looking for a Jira native solution - but I see you mentioned "Git Roll Up" issue tab which is specific to the Git Integration app that we make. Do you have that app installed?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
My guess is Yes we have Git Roll Up (is GIT Commit also part of this same Git integration app?) installed in JIRA. I am familiar with GIT usage, as I am mainly the Confluence person, but my team needs a way to track the GIT commits and merging branches into master all of the Commit branches for a specific Epic(s).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Casey -
Yes, the Git Commit issue tab and Git Roll Up issue tab are both from the same Git Integration app. The latest version is v3.4.3.
The app has two options for JQL searching (for Jira Server and Data Center):
gitCommitsReferenced
gitBranch
Examples:
gitBranch in (master) AND resolution = Unresolved
gitCommitsReferenced is not empty AND resolution = Unresolved
More documentation: https://bigbrassband.com/git-integration-for-jira/documentation/jql-searching.html
Note: there is a hard limit currently on JQL searching of 65,000 Jira issues with commits. We'll be addressing this limitation later this year.
If you have any specific follow up questions - you can reach us at support@bigbrassband.com
Cheers,
Adam
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Adam Wride I see that this article only references Jira Server. Is there a JQL method for Jira Cloud?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Adam Wride This article appears to only be applicable to Jira Server. Is there a method for JQL queries in Jira Cloud?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Chris McGuire -
Indeed - the above article is for Jira Server/Data Center.
For Jira Cloud - you can reference this article: JQL searching for commits and pull requests
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for the quick reply, @Adam Wride Unfortunately, using the method described on this page does not seem to be helping (ie. development[commits].all > 0). I'm curious - does the following option have to be enabled in order for this to work properly?
"Send Development Information to Jira Cloud"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Chris McGuire -
Correct, you will need "Send Development Information to Jira Cloud" enabled (which is the default for new installations - but if you installed the app more than a few weeks ago - you'll need to enable it in the General settings of the app).
Note: you will likely want to reconnect your repositories/integrations after enabling that setting so that all the commits/branches/pull requests get included.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can find the development functions for JQL at the url below it all depends if you have your dev tools linked to Jira.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Tobias Schönit's jql worked for me. Thanks!
issue.property[development].commits > 0
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you for your jql request!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I believe you can do this with JQL. Try adding "issue.property[development].commits is not empty" to your query.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for your immediate help. Query does not yield any results. I am trying the following in JQL. Is there anything wrong ? project = "Advanced Planning" and issue.property[development].commits is not empty No issues were found to match your search Try modifying your search criteria or creating a new issue
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It would rely on on you having set up the integration between JIRA and your source control system. The information for that JQL comes from the same source that makes the number of commits and branches show up in the developer status area. See these two links: * https://confluence.atlassian.com/jira/integrating-jira-with-code-development-tools-395707042.html#IntegratingJIRAwithCodeDevelopmentTools-Developmentpanelonissues * https://confluence.atlassian.com/jira/streamlining-your-development-with-jira-443548553.html
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
However, it's also worth noting that this information is updated rather lazily, as well. See this answer for a bit more about this: https://answers.atlassian.com/questions/20644626/answers/21631644
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
There is already a integration setup between our STASH and JIRA instance.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Works for me when I use equals, greater or less combination. However, it did not work with is or is not empty.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It does not work for me. It says, No issues were found to match your search
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I think the trouble you're having might be the > displayed here; probably different browsers render this page differently.
For Jira, that should be changed to the 'greater than' symbol, like this:
issue.property[development].commits > 0
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
not working for me. Are there any special settings to get it worked?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Vaibhav Parikh: Check out the response from @Aida Real above and try `development[commits].all > 0`
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Patrick. That worked.. I was trying with issue.property[development].commits. Great help.. thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Looks like JQL changed at some point
This works well
development[commits].all > 0
Anyone know how to limit that to a specific branch... like master?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yeah, the function was changed. Let's check feature request in jira.atlassian.com
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.