Skip to main content

A local client for connecting and working with the shortcut app

Project description

Shipyard-Shortcut

Description

A Python package that provides a simple way to interact with the Shortcut app, allowing you to create, update, and add comments to tickets and tasks directly from the command-line interface (CLI).

Installation

pip3 install shipyard-shortcut

Usage

from shipyard_shortcut import shipyard_shortcut

shortcut = shipyard_shortcut(<access_token>)
shortcut.create_ticket(<project_id>, <ticket_type>, <title>, <description>, <workflow_state_id>)

Command-Line Arguments

Add Comment

  • --access-token: (required) The access token for authenticating with the Shipyard Shortcut API.
  • --story-id: (required) The ID of the story to which the comment should be added.
  • --comment: (required) The content of the comment to be added.
  • --verbose: (optional) Enable verbose mode for detailed logging. If not provided, the default is false.

Create Ticket

  • --access-token: (required) The access token for authenticating with the Shipyard Shortcut API.
  • --story-name: (required) The name/title of the story to be created.
  • --workflow-state-id: (required) The ID of the workflow state to assign to the story.
  • --description: (optional) The description/content of the story. If not provided, it will be empty.
  • --story-type: (required) The type of the story. Possible values are 'feature', 'bug', or 'chore'.
  • --labels: (optional) Comma-separated labels to assign to the story. If not provided, it will have no labels.
  • --deadline: (optional) The deadline for the story. If not provided, there will be no deadline set.
  • --tasks: (optional) Comma-separated tasks to add to the story. If not provided, the story will have no tasks.
  • Note: If --labels or --tasks are provided, they should be comma-separated values.

Edit Ticket

  • --access-token: (required) The access token for authenticating with the Shipyard Shortcut API.
  • --story-id: (required) The ID of the story to be edited.
  • --story-name: (optional) The new name/title of the story.
  • --workflow-state-id: (optional) The new ID of the workflow state to assign to the story.
  • --description: (optional) The new description/content of the story.
  • --story-type: (optional) The new type of the story. Possible values are 'feature', 'bug', or 'chore'.
  • --labels: (optional) Comma-separated labels to assign to the story.
  • --deadline: (optional) The new deadline for the story.
  • --tasks: (optional) Comma-separated tasks to add to the story.
  • Note: If --labels or --tasks are provided, they should be comma-separated values.

Authentication

Step 1: Go to https://app.shortcut.com/<workspace_name>/settings/account/api-tokens to generate an API token. Step 2: Give the token a memorable name and click "Generate Token".

Finding the Workflow State ID in Shortcut:

  1. Navigate to the Shortcut Board: Go to the Shortcut board where you want to find the workflow state ID.

  2. Locate the Workflow State: Identify the specific workflow state you are interested in.

  3. Access Workflow State Options: Click on the ellipsis (...) button associated with the workflow state.

  4. Select "View State": From the dropdown menu that appears, choose "View state."

  5. Open the Search Page: A search page will open, displaying the details of the workflow state.

  6. Find the Workflow State ID: Locate the search bar on the search page.

  7. Note the Workflow State ID: The value in the search bar represents the workflow state ID you are looking for.

  8. Alternative: Check the URL: Additionally, you can find the workflow state ID at the end of the URL in your browser's address bar.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

shipyard_shortcut-0.1.3.tar.gz (4.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

shipyard_shortcut-0.1.3-py3-none-any.whl (7.2 kB view details)

Uploaded Python 3

File details

Details for the file shipyard_shortcut-0.1.3.tar.gz.

File metadata

  • Download URL: shipyard_shortcut-0.1.3.tar.gz
  • Upload date:
  • Size: 4.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.2 CPython/3.9.16 Darwin/22.4.0

File hashes

Hashes for shipyard_shortcut-0.1.3.tar.gz
Algorithm Hash digest
SHA256 f4966ac72fef570552c003d7808f069e263e843b5df4f25363bf66bf4df392eb
MD5 8d82cd63f1489cecc0f1e7935e5f9de5
BLAKE2b-256 33a5e68297a546bd0cfccf901ca3672ef4eb0529869069d1f5237c3ab7b815cf

See more details on using hashes here.

File details

Details for the file shipyard_shortcut-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: shipyard_shortcut-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 7.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.2 CPython/3.9.16 Darwin/22.4.0

File hashes

Hashes for shipyard_shortcut-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 f7fde151cb59c8c8d75c2c4adfa52217616e12e785e4a9e87cb05e3d886aa06a
MD5 da1007bc61b97580ea1fd1d1da87a399
BLAKE2b-256 4d134e0888d6fec4772397b424fe4fb1095a5a517085f8797a0658f50b86e186

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page