Module myself_api

Source

Structs§

GetCurrentUserParams
struct for passing parameters to the method get_current_user
GetPreferenceParams
struct for passing parameters to the method get_preference
RemovePreferenceParams
struct for passing parameters to the method remove_preference
SetLocaleParams
struct for passing parameters to the method set_locale
SetPreferenceParams
struct for passing parameters to the method set_preference

Enums§

DeleteLocaleError
struct for typed errors of method delete_locale
GetCurrentUserError
struct for typed errors of method get_current_user
GetLocaleError
struct for typed errors of method get_locale
GetPreferenceError
struct for typed errors of method get_preference
RemovePreferenceError
struct for typed errors of method remove_preference
SetLocaleError
struct for typed errors of method set_locale
SetPreferenceError
struct for typed errors of method set_preference

Functions§

delete_locale
Deprecated, use Update a user profile from the user management REST API instead. Deletes the locale of the user, which restores the default setting. Permissions required: Permission to access Jira.
get_current_user
Returns details for the current user. Permissions required: Permission to access Jira.
get_locale
Returns the locale for the user. If the user has no language preference set (which is the default setting) or this resource is accessed anonymous, the browser locale detected by Jira is returned. Jira detects the browser locale using the Accept-Language header in the request. However, if this doesn’t match a locale available Jira, the site default locale is returned. This operation can be accessed anonymously. Permissions required: None.
get_preference
Returns the value of a preference of the current user. Note that these keys are deprecated: * jira.user.locale The locale of the user. By default this is not set and the user takes the locale of the instance. * jira.user.timezone The time zone of the user. By default this is not set and the user takes the timezone of the instance. Use Update a user profile from the user management REST API to manage timezone and locale instead. Permissions required: Permission to access Jira.
remove_preference
Deletes a preference of the user, which restores the default value of system defined settings. Note that these keys are deprecated: * jira.user.locale The locale of the user. By default, not set. The user takes the instance locale. * jira.user.timezone The time zone of the user. By default, not set. The user takes the instance timezone. Use Update a user profile from the user management REST API to manage timezone and locale instead. Permissions required: Permission to access Jira.
set_locale
Deprecated, use Update a user profile from the user management REST API instead. Sets the locale of the user. The locale must be one supported by the instance of Jira. Permissions required: Permission to access Jira.
set_preference
Creates a preference for the user or updates a preference’s value by sending a plain text string. For example, false. An arbitrary preference can be created with the value containing up to 255 characters. In addition, the following keys define system preferences that can be set or created: * user.notifications.mimetype The mime type used in notifications sent to the user. Defaults to html. * user.notify.own.changes Whether the user gets notified of their own changes. Defaults to false. * user.default.share.private Whether new filters are set to private. Defaults to true. * user.keyboard.shortcuts.disabled Whether keyboard shortcuts are disabled. Defaults to false. * user.autowatch.disabled Whether the user automatically watches issues they create or add a comment to. By default, not set: the user takes the instance autowatch setting. Note that these keys are deprecated: * jira.user.locale The locale of the user. By default, not set. The user takes the instance locale. * jira.user.timezone The time zone of the user. By default, not set. The user takes the instance timezone. Use Update a user profile from the user management REST API to manage timezone and locale instead. Permissions required: Permission to access Jira.