A node CLI utility to import a markdown document of user stories into Shortcut
- Clone this repo
yarn install
At LaunchWare, we use asdf as our version manager, so a .tool-versions is included.
[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.mdThree env variables are required to import user stories into Shortcut:
SHORTCUT_TEAM_ID- In Shortcut, under
Settings > Teams, click the team - Then, find the
teamIdin the url:/settings/teams/{teamId}?{queryParams}
- In Shortcut, under
SHORTCUT_TOKEN- In Shortcut, under
Settings > API Tokens, generate an API token
- In Shortcut, under
SHORTCUT_WORKFLOW_STATE_ID- In Shortcut, under
Settings > Workflow States, click the desired default State - Then, find the
stateIdprepopulated in the search bar:state:{stateId}
- In Shortcut, under
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
...