Skip to content

LaunchWare/marked-stories

Repository files navigation

marked-stories

A node CLI utility to import a markdown document of user stories into Shortcut

Setup

  • Clone this repo
  • yarn install

At LaunchWare, we use asdf as our version manager, so a .tool-versions is included.

Usage

[env_vars] /bin/marked-stories push [file]

For example,

SHORTCUT_TEAM_ID=[teamId] SHORTCUT_TOKEN=[token] SHORTCUT_WORKFLOW_STATE_ID=[stateId] bin/marked-stories push path/to/file.md

Three env variables are required to import user stories into Shortcut:

  • SHORTCUT_TEAM_ID
    • In Shortcut, under Settings > Teams, click the team
    • Then, find the teamId in the url: /settings/teams/{teamId}?{queryParams}
  • SHORTCUT_TOKEN
    • In Shortcut, under Settings > API Tokens, generate an API token
  • SHORTCUT_WORKFLOW_STATE_ID
    • In Shortcut, under Settings > Workflow States, click the desired default State
    • Then, find the stateId prepopulated in the search bar: state:{stateId}

Formatting Requirements

In the source markdown file, each user story must begin with a title formatted as an h3.

### My First User Story

...

### My Second User Story

...

About

import markdown documents to issue trackers (starting w/Shorcut)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published