I'd like to configure either a condition or a validator (or something similar) to prevent an issue from moving to a specific status if there are open pull requests associated with that Jira issue. We're usually pretty good at catching this, but on occasion there are multiple pull requests associated to a single Jira issue and on occasion the issue has been moved before all of the pull requests have been merged.
@Nickolas Schaderit's all about permission, if you set validation/condition even if the are multiple request one who you give permission/what you set can perform this transition, as for move issue you can also block who can move issue in a project in the permission schemes
Thanks for the suggestion @Moses Thomas but I don't think it solves my issue. I want to prevent a developer from moving an issue when there is an open pull request. If we use permissions to limit who can perform the transition, they can still move it if there are open pull requests.
We have the View development tools permission
this should do the trick see documentation.
@Nickolas SchaderLets do it this way previous suggestion is not enough try this
- You have integrate your /Bitbucket/Whatever properly,
- Add a condition in this trasition > script condition >Allows the transition if this query matches a JQL query
-enter this JQL query :
(status = Done OR resolution = done) AND development[pullrequests].all > 0
this JQL should return any issues that have been resolved with a non-merged pull-request associated with the issue, so transition can only be performed if all pull request associated with this issue are done.
Hope this will do.
As always with Jira (atlassian). Valid issue and yet no viable solution. But hey, I'm sure Atlassian team is busy with full jira redesign yet again.
Sorry, could not resist... We have exactly the same problem where we need to prevent issues to be closed if an associated Pull Request is still open, and we are using Jira cloud.
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events