You can no longer publish Connect apps on the Atlassian Marketplace. All new extensibility features will be delivered only on Forge.
Refer to this blog post for our timeline to end Connect support.
Have an existing Connect app? You can incrementally migrate it to Forge.
A JavaScript module which provides functions for the current product context.
Retrieves the current user context as a JWT token containing details such as space key, issue id, etc. Throws an error if add-on does not support JWT authentication
Name | Type | Description |
---|---|---|
callback | function | the callback that handles the response |
1 2[ 'Promise' ].<string>
A promise that contains the token
1 2AP.context.getToken(function(token){ console.log("JWT token string", token); });
Retrieves the current user context containing details such as space key, issue id, etc.
Name | Type | Description |
---|---|---|
callback | function | the callback that handles the response |
1 2[ 'Promise' ].<Object>
A promise that contains the context
1 2AP.context.getContext(function(response){ console.log("Jira Issue Key", response.issue_key); console.log("Confluence page id", response.pageId); console.log("license status", response.license); });
Rate this page: