No Jira link is made when GitLab user has no permission for commenting
Summary
I wanted to stop GitLab leaving annoying comments in Jira:
[User Name|http://gitlab_host.tld/user.name] mentioned this issue in [a merge request of Group/Project|http://gitlab_host.tld/Group/Project/merge_requests/MR_ID]:
'MR Title'
Since I want to keep external links to easily navigate from Jira to GitLab I just revoked permissions for adding comments on Jira side for GitLab user, since I wasn't able to see option to disable these annoying comments in GL. Unfortunately the result is not what I expected - no links or comments are created.
Steps to reproduce
- Configure Jira<>GL integration as stated in manual
- Enable integration via keywords in MRs on GL side
- Revoke comments add permission on Jira side for GL user
- Create MR with issue key from Jira
Expected behavior
Link is created while comment is not.
Actual behavior
No link nor comment are created.
Possible fixes
I see two possible fixes:
- Hotfix: Creating link and comment should be separated and failure to create one should not affect other one.
- Proper fix: Add controls whatever comments or/and links should be created.