jira.js
    Preparing search index...

    Function getRequestTypeById

    • This method returns a customer request type from a service desk.

      This operation can be accessed anonymously.

      Permissions required: Permission to access the service desk.

      Parameters

      • client: Client
      • parameters: { expand?: string[]; requestTypeId: string; serviceDeskId: string }
        • Optionalexpand?: string[]
        • requestTypeId: string

          The ID of the customer request type to be returned.

        • serviceDeskId: string

          The ID of the service desk whose customer request type is to be returned. This can alternatively be a project identifier.

      • Optionaloptions: RequestOptions

      Returns Promise<
          {
              _expands?: string[];
              _links?: { self?: string; [key: string]: unknown };
              canCreateRequest?: boolean;
              description?: string;
              fields?: {
                  canAddRequestParticipants?: boolean;
                  canRaiseOnBehalfOf?: boolean;
                  requestTypeFields?: {
                      defaultValues?: RequestTypeFieldValue[];
                      description?: string;
                      fieldId?: string;
                      jiraSchema?: {
                          configuration?: Record<(...), (...)>;
                          custom?: string;
                          customId?: number;
                          items?: string;
                          system?: string;
                          type: string;
                          [key: string]: unknown;
                      };
                      name?: string;
                      presetValues?: string[];
                      required?: boolean;
                      validValues?: RequestTypeFieldValue[];
                      visible?: boolean;
                      [key: string]: unknown;
                  }[];
                  [key: string]: unknown;
              };
              groupIds?: string[];
              helpText?: string;
              icon?: {
                  _links?: { iconUrls?: Record<string, any>; [key: string]: unknown };
                  id?: string;
                  [key: string]: unknown;
              };
              id?: string;
              issueTypeId?: string;
              name?: string;
              portalId?: string;
              practice?: string;
              restrictionStatus?: string & {}
              | "OPEN"
              | "RESTRICTED";
              serviceDeskId?: string;
              [key: string]: unknown;
          },
      >