jira.js
    Preparing search index...

    Function createObjectType

    • Create a new object type

      Parameters

      • client: Client
      • parameters: {
            abstractObjectType?: boolean;
            description?: string;
            iconId: string;
            inherited?: boolean;
            name: string;
            objectSchemaId: string;
            parentObjectTypeId?: string;
        }
        • OptionalabstractObjectType?: boolean
        • Optionaldescription?: string
        • iconId: string
        • Optionalinherited?: boolean

          Describes if this object type is configured for inheritance i.e. it's children inherits the attributes of this object type

        • name: string
        • objectSchemaId: string
        • OptionalparentObjectTypeId?: string

          The id of the parent object type

      • Optionaloptions: RequestOptions

      Returns Promise<
          {
              abstractObjectType: boolean;
              created: Date;
              description?: string;
              globalId: string;
              icon: {
                  id: string;
                  name: string;
                  url16: string;
                  url48: string;
                  [key: string]: unknown;
              };
              id: string;
              inherited: boolean;
              name: string;
              objectCount: number;
              objectSchemaId: string;
              parentObjectTypeId?: number;
              parentObjectTypeInherited: boolean;
              position: number;
              type?: number;
              updated: Date;
              workspaceId: string;
              [key: string]: unknown;
          },
      >