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 to interact with the user currently in session.
This method retrieves the current user object containing the user's Atlassian Account ID.
Name | Type | Description |
---|---|---|
callback | function | the callback that handles the response. A single parameter is
passed to the callback. This parameter is an object comprising an attribute "atlassianAccountId"
and an attribute "accountType" which could be |
1 2AP.user.getCurrentUser(function(user) { console.log("The Atlassian Account ID is", user.atlassianAccountId); });
Retrieve the current user's timezone. If there is no logged in user, the server timezone is returned.
Please be aware that this field is under profile visibility controls and that a user may intend to hide this field from the public. Because this API will provide unrestricted access to the current user's timezone you should only use this API to establish context for the user. You should not present the user's timezone in a way that can be seen by other users viewing the application.
Name | Type | Description |
---|---|---|
callback | function | the callback that handles the response |
1 2AP.user.getTimeZone(function(timezone){ alert(timezone); });
Retrieve the user's locale used by the product.
Please be aware that this field is under profile visibility controls and that a user may intend to hide this field from the public. Because this API will provide unrestricted access to the current user's locale you should only use this API to establish context for the user. You should not present the user's locale in a way that can be seen by other users viewing the application.
Name | Type | Description |
---|---|---|
callback | function | the callback that handles the response |
1 2AP.user.getLocale(function(locale){ alert(locale); });
Rate this page: