github-for-jira icon indicating copy to clipboard operation
github-for-jira copied to clipboard

Unnecessary issue edits by JIRA for already linked issue keys

Open Dunedan opened this issue 2 years ago • 2 comments

Since a while we regularly see edits of PRs being made by JIRA. They seem to be triggered by the behavior to add links for issue keys in square brackets, however they also happen if the issue is already linked.

E.g. if the original PR description contains this:

[ABC-123](https://company.atlassian.net/browse/ABC-123)

JIRA will edit it, so it becomes like this:

[ABC-123](https://company.atlassian.net/browse/ABC-123)

[ABC-123]: https://company.atlassian.net/browse/ABC-123?atlOrigin=wifbejDagbaiQuoxyenefyixwikMuvdoatshEsp3drishkyuckerWofIcGeejyoabZyelCunnUmmUjojwa

Dunedan avatar Jan 26 '23 08:01 Dunedan

I think the grepping needs to check if the following character is not an opening parenthesis.

Also, why do we need atlOrigin in the generated links? Can we opt out of adding this parameter?

ADTC avatar Mar 13 '23 10:03 ADTC

I think this sort-of a duplicate of https://github.com/atlassian/github-for-jira/issues/1820, because the behavior is exactly the same with PR descriptions.

BenedekFarkas avatar Dec 06 '23 12:12 BenedekFarkas