Configure Hooks

SKumar M May 3, 2022

We are trying to configure Hooks to validate commit which require to be associated with valid Jira issue. Commits required valid JIRA ID.

Is this hook can be added out of the box at JIRA/Bitbucket or need a new plug-in to be purchased from market place?

3 answers

3 accepted

0 votes
Answer accepted
Robert Giddings [Adaptavist]
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
May 5, 2022

Hi @SKumar M ,

If you have ScriptRunner for Bitbucket you can achieve what you are looking to achieve using the "Require Commits to be Associated with a Valid Jira Issue" Built-In Pre-Hook, as documented here: https://docs.adaptavist.com/sr4bib/latest/features/script-pre-receive-hooks/built-in-pre-receive-hooks/require-commits-to-be-associated-with-a-valid-jira-issue

Kind regards,

Robert Giddings,

Product Manager, ScriptRunner for Bitbucket

0 votes
Answer accepted
Aron Gombas _Midori_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
May 5, 2022

In addition to Craig's tips, our app called Better Commit Policy also solves this with high level configurability.

0 votes
Answer accepted
Craig Nodwell
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
May 3, 2022

It can be done but it's a bit of work and there are different approaches.
This is something worth purchasing a plugin over, but you should probably look at one that will give you this as well as other automation and configuration management features.  Re: Scriptrunner for BitBucket Server will satisfy your current ask and a whole host of other features.

Have a review of this article:

how-to-create-a-simple-hook-in-bitbucket-server 

Craig Nodwell
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
May 3, 2022

Control Freak would be another one.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events