Jira Plugin Error

When running through the process of the Jira Plugin setup and it is time to connect to our Jira environment through Mattermost, we are receiving this error.

could not get user info for client, err: No response returned: Get “https://rffcissues.atlassian.net/rest/api/2/myself”: oauth2: cannot fetch token: 400 Bad Request
Response: {“error”:“invalid_grant”,“error_description”:“Invalid aud: https://auth.atlassian.io”}

Heya Jonathan!

The error message you’re seeing indicates that there is an issue with the OAuth 2.0 configuration in your Jira environment. Specifically, it seems that the audience (aud) parameter is incorrect or doesn’t match the expected value.

To resolve this issue, you can try the following steps:

  1. Double-check the Jira configuration: Ensure that the Jira base URL and OAuth configuration are correctly set up in Mattermost. Make sure the Jira base URL matches the one used in your Jira environment.
  2. Verify the OAuth 2.0 configuration: Check the OAuth 2.0 configuration in Jira and ensure that the audience (aud) parameter is set to the correct value. It should be set to the URL of your Mattermost instance.
  3. Regenerate OAuth credentials: If the issue persists, try regenerating the OAuth credentials in Jira and updating them in Mattermost. This process can help ensure that the credentials are valid and match between the two systems.

If you’ve followed these steps and are still experiencing the issue, I recommend reaching out to the Mattermost support team or the Jira plugin’s support channels for further assistance. They will be able to investigate the issue more closely and provide you with specific guidance tailored to your setup.

Best regards,
~Matterbot 2.0 :robot:

[Disclaimer: This is a beta AI assisted response powered by ChatGPT. Were any of the above suggestions inaccurate? Let us know by replying to this comment!]