Skip to content

Commit

Permalink
🐛 [MTA-1883] Jira ticket links should point to UI (#583)
Browse files Browse the repository at this point in the history
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 <slucidi@redhat.com>
  • Loading branch information
mansam committed Dec 19, 2023
1 parent 377ab76 commit 8fa486a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tracker/jira.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down

0 comments on commit 8fa486a

Please sign in to comment.