Class StoriesService

Inherit Doc

Hierarchy

Constructors

Properties

availableOperations: ServiceOperation[] = ...
baseUrl: string = 'https://api.app.shortcut.com/api/v3/stories'
headers: Record<string, string>
instances: Record<string, Story> = {}

Methods

  • Parameters

    • id: string | number

    Returns Promise<Story>

  • Fetches all stories that have an external link associated with them.

    Parameters

    • link: string

    Returns Promise<Story[]>

  • Parameters

    • ids: string[] | number[]

    Returns Promise<Story[]>

  • Search for resources using the Shortcut Syntax

    Parameters

    • query: string

      The search query to use

    • Optional next: string

      The next page token to use for pagination

    Returns Promise<SearchResponse<Story, StoryInterface>>

    Example

    const client = new Client()
    const epics = client.epic.search('My epic')
    const stories = client.story.search('team:platform')
    const objectives = client.objective.search({team_id: 123})
    const iterations = client.iteration.search('team:platform')

    Throws

    Error if the HTTP status code is 400 or greater