jira.js
    Preparing search index...

    Function getNotificationScheme

    • Returns a full representation of the notification scheme for the given id. This resource will return a notification scheme containing a list of events and recipient configured to receive notifications for these events. Consumer should allow events without recipients to appear in response. User accessing the data is required to have permissions to administer at least one project associated with the requested notification scheme. Notification recipients can be:

      • Current assignee - the value of the notificationType is CurrentAssignee
      • Issue reporter - the value of the notificationType is Reporter
      • Current user - the value of the notificationType is CurrentUser
      • Project lead - the value of the notificationType is ProjectLead
      • Component lead - the value of the notificationType is ComponentLead
      • All watchers - the value of the notification type is AllWatchers
      • Configured user - the value of the notification type is User. Parameter will contain key of the user. Information about the user will be provided if user expand parameter is used.
      • Configured group - the value of the notification type is Group. Parameter will contain name of the group. Information about the group will be provided if group expand parameter is used.
      • Configured email address - the value of the notification type is EmailAddress, additionally information about the email will be provided.
      • Users or users in groups in the configured custom fields - the value of the notification type is UserCustomField or GroupCustomField. Parameter will contain id of the custom field. Information about the field will be provided if field expand parameter is used.
      • Configured project role - the value of the notification type is ProjectRole. Parameter will contain project role id. Information about the project role will be provided if projectRole expand parameter is used. Please see the example for reference. The events can be Jira system events or events configured by administrator. In case of the system events, data about theirs ids, names and descriptions is provided. In case of custom events, the template event is included as well.

      Parameters

      • client: Client
      • parameters: { expand?: string; id: number }
        • Optionalexpand?: string

          Optional information to be expanded in the response: group, user, projectRole or field.

        • id: number

          The id of the notification scheme to retrieve

      • Optionaloptions: RequestOptions

      Returns Promise<
          {
              description?: string;
              expand?: string;
              id?: number;
              name?: string;
              notificationSchemeEvents?: {
                  event?: {
                      description?: string;
                      id?: number;
                      name?: string;
                      [key: string]: unknown;
                  };
                  notifications?: {
                      id?: number;
                      notificationType?: string;
                      parameter?: string;
                      [key: string]: unknown;
                  }[];
                  [key: string]: unknown;
              }[];
              self?: string;
              [key: string]: unknown;
          },
      >