roadie-backstage-plugins icon indicating copy to clipboard operation
roadie-backstage-plugins copied to clipboard

JIRA - wrong URL for go to project

Open dweber019 opened this issue 2 years ago • 1 comments

Expected Behavior

If I configure a JIRA URL like https://jira.com/atlassian for the proxy, I would expect to have an URL like https://jira.com/atlassian/browse/<project-key>.

Current Behavior

I have an URL like https://jira.com/browse/<project-key>, without the atlassian path.

Steps to Reproduce

Configure a JIRA proxy URL which isn't only an origin, with a context path.

Possible Solution

  • Use proxy target URL at https://github.com/RoadieHQ/roadie-backstage-plugins/blob/main/plugins/frontend/backstage-plugin-jira/src/components/JiraCard/JiraCard.tsx#L140
  • Or trim from /rest/api/latest/project/xxx at https://github.com/RoadieHQ/roadie-backstage-plugins/blob/main/plugins/frontend/backstage-plugin-jira/src/api/index.ts#L68

Context

  • We get a 404 when clicking Go to project on the JIRA card
  • Construction of Go to project URL => https://github.com/RoadieHQ/roadie-backstage-plugins/blob/main/plugins/frontend/backstage-plugin-jira/src/components/JiraCard/JiraCard.tsx#L140
  • Construction of project.url => https://github.com/RoadieHQ/roadie-backstage-plugins/blob/main/plugins/frontend/backstage-plugin-jira/src/api/index.ts#L68

dweber019 avatar Aug 28 '22 10:08 dweber019

https://app.shortcut.com/larder/story/10389

roadie-bot avatar Aug 28 '22 10:08 roadie-bot

Fixed the issue in https://github.com/RoadieHQ/roadie-backstage-plugins/pull/654 FYI @kissmikijr

dweber019 avatar Sep 08 '22 19:09 dweber019