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,553,049
Community Members
 
Community Events
184
Community Groups

how to hook sourcetree to Jira

hello,

I want that in every commit (not push) I will force the developer to open a JIRA issue.

how can I do it?

 

I already defined in bit bucket that every push has to be with JIRA prefix. but this is only for push action. if someone forget to add the prefix he needs to amend the commit. but if I have couple of commits this is a problem. 

I want to force JIRA issue opening and not just adding the prefix. can I do it?

2 answers

0 votes
Mikael Sandberg
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Apr 16, 2019 • edited

Hi Eliah,

Welcome to the Atlassian Community.

Since commits in Git are all local actions you would have to create a pre-commit hook that does this for you. You can maintain hooks centrally and share them with your team, see Two Ways to Share Git Hooks with Your Team for example.

0 votes
bgannin
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Apr 16, 2019

Hi @Eliah Ninyo,

There isn't a way to do this in Sourcetree's UI currently. I'd recommend using a pre-commit hook to ensure that wherever the user commits from they are checked. You'd want to have the hook's script do a search for the prefix and fail if it's not found, showing a URL for creating one in the error message. Hope that helps.

Brian Ganninger
Principal Developer, Sourcetree

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events