Jira Plugin: OAuth error on API calls to Jira

Description

The Jira API calls are returning a `400 Bad Request` because of the Jira userkey deprecation for the GDPR migration. Here are some Jira docs explaining the deprecation:
https://developer.atlassian.com/cloud/jira/platform/api-changes-for-user-privacy-announcement-connect
https://developer.atlassian.com/cloud/jira/platform/deprecation-notice-user-privacy-api-migration-guide

Here is the error that we receive when opening the `Create Issue` modal or the `Channel Subscriptions` modal:

Here is the error we receive when trying to `/jira connect`:
`invalid JWT: no user data`

QA Test Steps

Authentication

  • Connect

  • Disconnect

  • Mapped user's name displays correctly in Jira when making changes to issues and comments

  • Disconnect and re-connect as a different user

Create issue (All issue types)

Attach comment

  • Working as expected

  • Permissions are respected

Transitions

  • Transitions work

  • Transitions Permissions are respected

Mana

4

Assignee

Christopher Poile

QA Assignee

Dylan Haussermann

Reporter

Michael Kochell

Epic Link

None

Mattermost Team

Integrations

Sprint

None

Labels

None

QA Testing Areas

Plugins

GitHub Issue

None

Components

None

Severity

None
Configure