Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,467,408
Community Members
 
Community Events
177
Community Groups

Configure Hooks

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

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

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 May 03, 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 May 03, 2022

Control Freak would be another one.

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events