Class LabelsService

Hierarchy (view full)

Constructors

Properties

availableOperations: ServiceOperation[] = ...

Lists out the available operations for the resource, calling methods not in this list will result in an error

baseUrl: string = 'https://api.app.shortcut.com/api/v3/labels'
headers: Record<string, string>
instances: Record<string, Label> = {}

Methods

  • A convenience method to get a label by its name

    Parameters

    • name: string

      The name of the label to get. Note that the search is case-sensitive.

    Returns Promise<null | Label>

    The label with the given name, or null if no label is found