Access Tenant Token

Main Issue: The main issue is that I am unable to link QMetry test cases. According to the QMetry documentation, it is possible to link test cases using the QMetry API key. However, when I attempt to do so, it asks for the JWT token. Please refer to the QMetry documentation for more details: QMetry API Tool Documentation.

Token Access:

I am not able to access the tenant token, which I need to pass as an authorization header for QMetry to link the test cases. Below are the steps I have tried:

  1. Using the getContextToken Method:

  2. Documentation link: Atlassian Connect JavaScript API

  3. Using Context Methods:

  4. Using document.cookie Method:

  5. Using Parent Window (as the plugin is in an iframe inside Jira):

Please find the code snippets

image

Please help and guide me to how to access the token, we are working under a SSO.

I want the tenant token for the authorization and linking functionality’s

Hi @AbhilashBabu

You mentioned both Forge and Connect in your above question, but it looks like you’re after an access token so QMetry can access your atlassian site?

To generate an API token for your Atlassian site, see Manage API tokens for your Atlassian account | Atlassian Support

If this answers your question, please mark this as a solution.

If I’ve misunderstood, and you did want to build a Forge or Connect app that calls the QMetry API please let me know.

Cheers!
Mel

1 Like