Need JQL to find issues with AT LEAST one pull request and AT LEAST one MERGED pull request.

Daniel Gallegos November 13, 2017

Folks,

 

I'm trying to create a JQL query that will return issues that have the following:

  • AT LEAST one (1) pull request
  • AT LEAST one (1) MERGED pull request

 

AND development[pullrequests].all > 0 AND development[pullrequests].open < 1

 

I was using the above, however that means if I have multiple pr's on an issue it won't return if even one is open. 

 

Does JIRA support something akin to "development[pullrequests].merged >= 1??

5 answers

2 votes
Daniel Turczanski - __JQL Search Extensions
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
November 18, 2017

Hi!

JQL Search Extensions has JQL keywords for pull requests. Documentation can be found here.

After installing the plugin you can check the number of pull requests:

pullRequestsCount > 0

As well as open pull requests:

openPullRequestsCount >0

1 vote
Christian May 6, 2021

If found this answer to a similar question that showed me how to filter on pull requests and their status.

https://community.atlassian.com/t5/Jira-Software-questions/How-to-find-Issues-with-Merged-PR/qaq-p/830999

NOTE: There is a difference between JIRA Server and Cloud editions!

0 votes
Philip Schlesinger June 3, 2019

I have the same request and will bump thread. Did anybody find how to resolve this issue w/o having to pay for JQL Search Extensions?

Philip Schlesinger June 3, 2019
0 votes
Timofey Murzin March 30, 2018

I have the same request and will bump thread. Daniel - did you find how to resolve this issue?

0 votes
Daniel Gallegos November 14, 2017

Bump.

Suggest an answer

Log in or Sign up to answer