Gitlab integration always select me as the one who left the comment

Terry Zhang June 29, 2021

We have gitlab integration and I was the one who set it up. I don't know if I didn't set it up correctly or something else. If someone else mention the Jira ticket ID in a gitlab ticket, it creates the web link and adds a comment in the Jira ticket as expected. However, it always select me as the one who left the comment. See the example below, it was another gitlab user who mentioned the Jira ticket id in gitlab, but in the Jira ticket, I was the one who left the comment. How can I fix this? Thanks.

Screen Shot 2021-06-29 at 10.30.17 AM.png

1 answer

1 accepted

2 votes
Answer accepted
Trudy Claspill
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
June 29, 2021

When you did the integration, did you do this step to create an API token for Jira that you then plugged into Gitlab?

https://docs.gitlab.com/ee/integration/jira/jira_cloud_configuration.html

This API token created in Jira and plugged into Gitlab is what gives Gitlab the permissions to make updates in Jira.

That API token had to be created under some Jira user's account. If you created it under your own personal Jira account, then everything that Gitlab does to update Jira, like creating those comments, will be done under your identity.

In our environment we created a special Jira user account named "Integration User" and created the API token under that account. In that case, all changes made in Jira by the Gitlab integration appear as made by "Integration User".

Terry Zhang June 29, 2021

Yes, I used my account to create the token. I think you are right, that must be the reason. Thanks.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Site Admin
TAGS
AUG Leaders

Atlassian Community Events