Git branch author no the one who created it. Why?

Peter Rivera May 7, 2019

Hi,

I just deployed Git integration for Jira and users are new to it. One user (User1) has created a Git branch from a ticket but when it is created, User1 is not the author of it, instead, it displays other user (User2).

My issue looks like this: https://community.atlassian.com/t5/Sourcetree-questions/Commit-Author-why-is-the-commit-author-not-me/qaq-p/605332

But we're using Azure DevOps instead.

Another issue is that it creates the branch under my account in Azure DevOps, think it might be because I used my own token to connect Git integration to Azure.

Is there a setting where a user creates a branch under the his name as the author and the owner of the branch in remote server (Azure)?

Thanks!

1 answer

1 accepted

0 votes
Answer accepted
Adam Wride
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 8, 2019

Hi Peter - 

Yes - there is a setting for Jira admins to require that each user enter their own Personal Access Token for actions like creating a branch or a pull request.

You will find this in the integration settings:

Screen Shot 2019-05-08 at 07.18.15.png

 

Then the Require User PAT setting:

Screen Shot 2019-05-08 at 07.18.42.png

Once you enable that your users will see this prompt when creating a branch/pull request (one-time setup):

Screen Shot 2019-05-08 at 07.24.10.png

Where they will be taken to the View all repositories screen. Clicking on the pencil/edit icon for the integration for the desired repository will show a dialog where they paste in their Personal Access Token from Azure DevOps.

Screen Shot 2019-05-08 at 07.23.40.png

 

Screen Shot 2019-05-08 at 07.27.09.png

Instructions: creating personal access tokens.

 

Cheers,

Adam

 

(For future readers - the current version of the Git Integration for Jira Server as of this posting is v3.1.10)

Peter Rivera May 8, 2019

Hi Adam,

Thanks for the reply! It works now, however, we need to enable the Git repository browser first before doing that then disable once they configure their tokens. Giving a window time to access the repository by non-admins and non-dev users. Just a security concern but all is good.

Thank you for you support,

Peter

Adam Wride
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 9, 2019

Peter - 

Depending on your needs - it is possible to leave the Repository Browser enabled - but disable source code diff viewing (documentation). This setting does affect a variety of areas in the app so this approach may or may not work for your team.

Cheers,

Adam 

Adam Wride
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 10, 2019

This feature is documented here.

Suggest an answer

Log in or Sign up to answer