Skip to main content

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.

Metadata

Release files for shipyard-shortcut 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for shipyard-shortcut 0.1.3
File Size Uploaded
shipyard_shortcut-0.1.3.tar.gz 4.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for shipyard-shortcut 0.1.3
File Interpreter ABI Platform
shipyard_shortcut-0.1.3-py3-none-any.whl Python 3 none any Details

Total release size: 12.1 kB

Release files / shipyard_shortcut-0.1.3.tar.gz

Download URL shipyard_shortcut-0.1.3.tar.gz
Size 4.9 kB
Tags Source
SHA-256 checksum
How to use checksums
f4966ac72fef570552c003d7808f069e263e843b5df4f25363bf66bf4df392eb
BLAKE2b-256 checksum
How to use checksums
33a5e68297a546bd0cfccf901ca3672ef4eb0529869069d1f5237c3ab7b815cf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.4.2 CPython/3.9.16 Darwin/22.4.0

Release files / shipyard_shortcut-0.1.3-py3-none-any.whl

Download URL shipyard_shortcut-0.1.3-py3-none-any.whl
Size 7.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f7fde151cb59c8c8d75c2c4adfa52217616e12e785e4a9e87cb05e3d886aa06a
BLAKE2b-256 checksum
How to use checksums
4d134e0888d6fec4772397b424fe4fb1095a5a517085f8797a0658f50b86e186
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.4.2 CPython/3.9.16 Darwin/22.4.0

Release history Release notifications | RSS feed

This release

0.1.3 This release

2 release files

0.1.2

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page