Prevent doing a transition to close when there are open pull requests

Michiel Jakobs March 4, 2020

Hi Everybody,

 

We use Jira Cloud and Bitbucket Cloud. I have enable the option Development in Jira, so we can see the created branches and open pull requests. 

Is there way to disable the transition to state CLOSE when there are open pull requests?

 

I like to hear from you!

Thanks a lot!

 

Michiel

3 answers

0 votes
Leo Prakash_CodeForMe_ May 20, 2024

Hi Everyone,

If anyone is looking for a solution still and interested to try out new plugin, we have released a FREE plugin which blocks the transition if there are any open PRs.

please find the plugin here: Open Pull Request Condition for Jira 

and we would love to hear your feedback.

 

Regards,

Leo, CodeForMe

0 votes
Sergey Bystrykh
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 5, 2024

I was able to do it with the ScriptRunner script validator.
The following code should be added:

issue.customfield_10000.match('OPEN') == null

My configurations is Jira Cloud + Bitbucket Data Center. 

0 votes
John Funk
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
September 3, 2020

@David Fischer  - Anyway to do this with JMWE? I have the same need. 

David Fischer
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
September 3, 2020

Hi @John Funk 

Unfortunately, Worfklow Conditions and Validators for Jira Cloud can only be written in Atlassian's "Jira Expressions" language, which currently doesn't expose Development data.

However, it would be possible on Jira Server/DC. And it's also possible to access development data from JMWE post-functions on Jira Cloud.

Like John Funk likes this
John Funk
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
September 3, 2020

I was afraid of that. Thanks for the verification though!!

John Funk
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
September 3, 2020

@Michiel Jakobs  - I think that also probably answers your original question. 

What I have done as somewhat of a work around is to have an email sent to me and the Dev lead when an issue with open pull requests is marked Closed/Done so someone can follow up with the Developer. 

Like # people like this
Michiel Jakobs September 7, 2020

Thanks everybody for the answers. I will implement the work around of @John Funk.

I hope that the development data can be used in Workflow conditions soon.

Like John Funk likes this
Chris Covert March 31, 2022

@John Funk Hi, can you provide some details on how to setup this email notification when an issue is closed if it still has pull requests not merged yet.

Like vhoutgraaf likes this

Suggest an answer

Log in or Sign up to answer