How do you link your JIRA tasks directly on SourceTree

SourceTree is the most popular GIT GUI tool. The company gitLab sometimes requires to bring the JIRA number to submit code information, so as to integrate some repositories with JIRA. We can also click the corresponding JIRA link in SourceTree after simple configuration. You can even do some other filtering of the submission information and lead links etc

Just click on the JIRA link in the red box to jump directly to the problem page in your browser

Set 1.

Open your repository browser on SourceTree and click Settings in the upper right corner.

2. Advanced tabs

Open the Advanced TAB, and then click Add on the Submit Text Replacement block

3. Submit text replacement

Select the JIRA project link option in the Replacement Type drop-down list.

Enter your project prefix (for example, YWZT) in the project prefix field (our jIRA number is yWZT-123 or something like that)

Enter the root URL of JIRA in the managed URL field (e.g. ** Rocketbrasil.jira.com **)

4. Link to JIRA

All submitted comments with [prefix-number] will have a direct link on SourceTree to the relevant JIRA task.

This way, when browsing the submission, you can directly click on the corresponding JIRA question

Reference to the original

Got gist.github.com/danielcosta… Inspired by this Github GIST