From 8fa486aa6cdd20f40e103946f6c8228a2d8f78df Mon Sep 17 00:00:00 2001 From: Samuel Lucidi Date: Tue, 19 Dec 2023 08:47:24 -0500 Subject: [PATCH] :bug: [MTA-1883] Jira ticket links should point to UI (#583) Fixes the Jira integration to generate and store a link to the created issue's UI location rather than its API location. Fixes https://issues.redhat.com/browse/MTA-1883 Signed-off-by: Sam Lucidi --- tracker/jira.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tracker/jira.go b/tracker/jira.go index 8e0a6be6..ff3a22df 100644 --- a/tracker/jira.go +++ b/tracker/jira.go @@ -75,7 +75,7 @@ func (r *JiraConnector) Create(t *model.Ticket) (err error) { t.Error = false t.Message = "" t.Reference = i.Key - t.Link = i.Self + t.Link = fmt.Sprintf("%s/browse/%s", r.tracker.URL, i.Key) t.LastUpdated = time.Now() metrics.IssuesExported.Inc()