Jira integration creates links for other projects

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

Summary

When a Jira integration is set, any template matching \w*-\d* will create a link to Jira in issues, comment, merge requests, even if the project is not yours.

Steps to reproduce

  • Set Jira integration
  • Create an issue with UTF-8 in the text.

What is the current bug behavior?

The issue will have a link to https://jira-server.com/browse/UTF-8

What is the expected correct behavior?

It should create a link to Jira only for owned projects.

Possible fixes

A field to set a template should be able to create links only for the owned Jira projects. For exemple, I have 3 projects in Jira : PG1, PG2 and PG3, the field could be set as a list like PG1, PG2, PG3 and be used during issue, comments, merge requests creation.

Edited by 🤖 GitLab Bot 🤖