Skip to content

Instantly share code, notes, and snippets.

@danielcosta
Last active November 7, 2023 21:03
Show Gist options
  • Save danielcosta/5620616 to your computer and use it in GitHub Desktop.
Save danielcosta/5620616 to your computer and use it in GitHub Desktop.
Learn how to integrate your SourceTree repositories with JIRA
# Integrating JIRA with SourceTree
## Overview
You will learn how to link your JIRA tasks directly on SourceTree
### Step by step
#### 1. Setting
Open your repository browser on SourceTree and click **Settings** located top-right.
![Parte 1](http://i.imgur.com/XrKcHb6.png)
#### 2. Advanced tab
Open **Advanced** tab and on *Commit Text Replacements* block click **Add**
![Parte 2](http://i.imgur.com/suxu3ec.png)
#### 3. Commit text replacement
On *Replacement Type* dropdown select **JIRA Project Link** option.
On *Project Prefix* field type your project prefix (ex. **MEBLO**)
On *Hosting URL* field type root URL of your JIRA (ex. **https://rocketbrasil.jira.com**)
![Parte 3](http://i.imgur.com/N7BQEAs.png)
#### 4. Link to JIRA
All commit comments with **[PREFIX-NUMBER]** will have a link on SourceTree directly to the associated JIRA task.
![Parte 4](http://i.imgur.com/p72624M.png)
### And more?
Follow [@danielcosta](http://twitter.com/danielcosta) on Twitter for the latest news.
@fogoat
Copy link

fogoat commented Mar 24, 2016

Works like a charm. I was thinking integration like resolving JIRA issues with a commit from SourceTree as an option. In the meantime, this will do.

@goBazinga
Copy link

Worked well, thanks !!!

@shijinliang
Copy link

need to set up JIRA?

@27prajaktapatil
Copy link

Does this work on Global JIRA or is it have to be only GEC JIRA ?

@Calvin-for-AI
Copy link

Worked well, thanks !!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment