Hello, dear community,
I am using Bitbucket Data Center version 9.4.
My Bitbucket Data Center is directly integrated with my Jira.
Currently, I want to configure it so that when a pull request is created, Bitbucket checks the Jira ticket associated with the pull request, and if that ticket contains information that it is blocked by another issue, Bitbucket will not allow merging the code with the main branch until the blockers are resolved.
At the moment, I have applied the following configuration:
In the settings of my Bitbucket project, under Hooks, I enabled the Push check parameter.
Within the Push check parameter, I enabled:
status in ("In Progress", "Open", "In Review", "Resolved")
AND issue NOT IN linkedIssues($key, "is blocked by")
AND issue NOT IN linkedIssues($key, "blocks")
Unfortunately, my configuration is not working; I can merge a pull request with the main branch even if the Jira ticket has a blocker from another ticket.
Perhaps I am using the wrong query? Or maybe the options for the Push check parameter are not correct for my task?
Please help me figure this out.