Sazabi
CLI

sazabi tasks

Command reference for sazabi tasks.

sazabi tasks — Manage tasks and automatic task creation rules in connected trackers. Subcommands: create, comment, transition, rules, mapping.

sazabi tasks

Manage tasks and automatic task creation rules in connected trackers

sazabi tasks <subcommand>
sazabi tasks create --container ENG --title "Fix login bug"  # Create a task in the ENG tracker
sazabi tasks rules list  # List automatic task creation rules
sazabi tasks mapping set --provider linear --resolved "Done"  # Map Resolved to a Linear state
sazabi tasks rules create --connection-id <id> --provider linear --container-id ENG --min-severity high  # Create a routing rule
sazabi tasks comment --task-id ENG-123 --body-markdown "Fixed in the latest deploy"  # Add a comment to a task
sazabi tasks transition --task-id ENG-123 --state Done  # Move a task to a target state

sazabi tasks create

Create a task such as a Linear issue

sazabi tasks create [options]
FlagTypeRequiredDescription
--tokenstringNoOverride token
--api-base-urlstringNoOverride API base URL
--jsonbooleanNoOutput as JSON
--organization-idstringNoOverride active organization ID
--containerstringNoContainer id, short key (e.g. a Linear team key like ENG), or display name
--titlestringNoTask title
--body-markdownstringNoMarkdown body/description for the task
--statestringNoOptional initial workflow state, by name or state ref
--item-typestringNoTask type, by name or type ref (required only for trackers that declare types)
--client-request-idstringNoStable idempotency key. Pass the same value when retrying a create so a lost/timed-out response does not file a duplicate task
sazabi tasks create --container ENG --title "Fix login bug"  # Create a task in the ENG tracker
sazabi tasks create --container ENG --title "Fix login bug" --body-markdown "Steps to repro..." --json  # Create with a body and print JSON
sazabi tasks create --container ENG --title "Fix login bug" --client-request-id "$(uuidgen)"  # Safe to retry with the same key

sazabi tasks comment

Add a comment to a task

sazabi tasks comment [options]
FlagTypeRequiredDescription
--tokenstringNoOverride token
--api-base-urlstringNoOverride API base URL
--jsonbooleanNoOutput as JSON
--organization-idstringNoOverride active organization ID
--task-idstringNoThe task to comment on: its provider-native id or human identifier (e.g. "ENG-123")
--body-markdownstringNoMarkdown body of the comment
sazabi tasks comment --task-id ENG-123 --body-markdown "Fixed in the latest deploy"  # Add a comment to a task

sazabi tasks transition

Move a task to a target workflow state

sazabi tasks transition [options]
FlagTypeRequiredDescription
--tokenstringNoOverride token
--api-base-urlstringNoOverride API base URL
--jsonbooleanNoOutput as JSON
--organization-idstringNoOverride active organization ID
--task-idstringNoThe task to transition: its provider-native id or human identifier (e.g. "ENG-123")
--statestringNoTarget workflow state, by name (case-insensitive) or state ref
sazabi tasks transition --task-id ENG-123 --state Done  # Move a task to a target state

sazabi tasks rules

Manage automatic task creation rules for a project

sazabi tasks rules <subcommand>

sazabi tasks rules list

List task creation rules

sazabi tasks rules list [options]
FlagTypeRequiredDescription
--tokenstringNoOverride token
--api-base-urlstringNoOverride API base URL
--jsonbooleanNoOutput as JSON
--organization-idstringNoOverride active organization ID
--project-idstringNoOverride active project ID
sazabi tasks rules list  # List all rules in priority order
sazabi tasks rules list --json  # Output rules as JSON

sazabi tasks rules get

Get a task creation rule by ID

sazabi tasks rules get <rule-id> [options]
FlagTypeRequiredDescription
--tokenstringNoOverride token
--api-base-urlstringNoOverride API base URL
--jsonbooleanNoOutput as JSON
--organization-idstringNoOverride active organization ID
--project-idstringNoOverride active project ID
--rule-idstringNoRule ID (UUID)
sazabi tasks rules get <rule-id>  # View details of a rule

sazabi tasks rules create

Create an automatic task creation rule

sazabi tasks rules create [options]
FlagTypeRequiredDescription
--tokenstringNoOverride token
--api-base-urlstringNoOverride API base URL
--jsonbooleanNoOutput as JSON
--organization-idstringNoOverride active organization ID
--project-idstringNoOverride active project ID
--connection-idstringNoIntegration connection ID (Linear, Jira or GitHub connection)
--providerstringNoTask provider (linear, jira, github)
--container-idstringNoContainer ID (Linear team ID, Jira project ID or key, or GitHub repository as owner/repo)
--min-severitystringNoMinimum issue severity to match (low, medium, high, critical)
--component-idsstringNoComma-separated component UUIDs to match (repeatable via commas; exclusive with --team-ids)
--team-idsstringNoComma-separated owning-team UUIDs to match (exclusive with --component-ids)
--default-item-typestringNoDefault task item type (required for Jira)
--default-statestringNoDefault workflow state in external tracker
--prioritystringNoEvaluation priority order (lower numbers evaluated first)
--enabledbooleanNoEnable the rule (default: true)
--disabledbooleanNoCreate rule in disabled state
sazabi tasks rules create --connection-id <id> --provider linear --container-id ENG --min-severity high  # Route high/critical issues to Linear ENG
sazabi tasks rules create --connection-id <id> --provider jira --container-id PROJ --default-item-type Bug  # Route issues to Jira PROJ as Bug
sazabi tasks rules create --connection-id <id> --provider github --container-id acme/api  # Route issues to GitHub Issues in acme/api

sazabi tasks rules update

Update an automatic task creation rule

sazabi tasks rules update <rule-id> [options]
FlagTypeRequiredDescription
--tokenstringNoOverride token
--api-base-urlstringNoOverride API base URL
--jsonbooleanNoOutput as JSON
--organization-idstringNoOverride active organization ID
--project-idstringNoOverride active project ID
--rule-idstringNoRule ID (UUID)
--connection-idstringNoNew integration connection ID
--providerstringNoNew task provider (linear, jira, github)
--container-idstringNoNew container ID
--min-severitystringNoNew minimum issue severity (or 'all' to match all severities)
--clear-min-severitybooleanNoClear minimum severity threshold to match all severities
--component-idsstringNoComma-separated component UUIDs to match (or empty string to clear; exclusive with --team-ids)
--clear-componentsbooleanNoClear component filter so the rule matches all components
--team-idsstringNoComma-separated owning-team UUIDs to match (or empty string to clear; exclusive with --component-ids)
--clear-teamsbooleanNoClear team filter so the rule matches all teams
--default-item-typestringNoNew default task item type
--default-statestringNoNew default workflow state
--prioritystringNoNew evaluation priority order
--enabledstringNoEnable or disable rule (true/false)
sazabi tasks rules update <rule-id> --min-severity critical  # Raise severity threshold
sazabi tasks rules update <rule-id> --enabled false  # Disable a rule

sazabi tasks rules delete

Delete an automatic task creation rule

sazabi tasks rules delete <rule-id> [options]
FlagTypeRequiredDescription
--tokenstringNoOverride token
--api-base-urlstringNoOverride API base URL
--jsonbooleanNoOutput as JSON
--organization-idstringNoOverride active organization ID
--project-idstringNoOverride active project ID
--rule-idstringNoRule ID (UUID)
sazabi tasks rules delete <rule-id>  # Delete a task creation rule

sazabi tasks rules reorder

Reorder task creation rules by priority

sazabi tasks rules reorder <rule-ids...> [options]
FlagTypeRequiredDescription
--tokenstringNoOverride token
--api-base-urlstringNoOverride API base URL
--jsonbooleanNoOutput as JSON
--organization-idstringNoOverride active organization ID
--project-idstringNoOverride active project ID
sazabi tasks rules reorder <id1> <id2> <id3>  # Reorder rules (first is evaluated first)

sazabi tasks mapping

Map Sazabi issue statuses to a task tracker's states

sazabi tasks mapping <subcommand>
sazabi tasks mapping get  # Show the mapping for the one connected tracker
sazabi tasks mapping set --resolved "Done" --ignored "Canceled"  # Pick two rows

sazabi tasks mapping get

Show the toggle and the mapped states

sazabi tasks mapping get [options]
FlagTypeRequiredDescription
--tokenstringNoOverride token
--api-base-urlstringNoOverride API base URL
--jsonbooleanNoOutput as JSON
--organization-idstringNoOverride active organization ID
--providerstringNoTask tracker (linear, jira, github). Optional while one tracker with status mapping is connected
--connection-idstringNoThe tracker connection to act on; defaults to the organization's live connection. GitHub may have one per installation.
sazabi tasks mapping get --provider linear  # Show the toggle and the four rows

sazabi tasks mapping set

Turn status mapping on or off and pick a row's state

sazabi tasks mapping set [options]
FlagTypeRequiredDescription
--tokenstringNoOverride token
--api-base-urlstringNoOverride API base URL
--jsonbooleanNoOutput as JSON
--organization-idstringNoOverride active organization ID
--providerstringNoTask tracker (linear, jira, github). Optional while one tracker with status mapping is connected
--connection-idstringNoThe tracker connection to act on; defaults to the organization's live connection. GitHub may have one per installation.
--enabledbooleanNoTurn status mapping on
--disabledbooleanNoTurn status mapping off
--openstringNoState for Open, by name, or none to empty the row
--resolvedstringNoState for Resolved, by name, or none to empty the row
--ignoredstringNoState for Ignored (and Rejected), by name, or none to empty the row
--resolved-resolutionstringNoJira only: resolution a Resolved move closes with, by name, or none for the default done one. Takes effect only while Resolved maps to a done-type status
--ignored-resolutionstringNoJira only: resolution an Ignored (and Rejected) move closes with, by name, or none for the first canceling one
sazabi tasks mapping set --provider linear --enabled  # Turn it on, rows unchanged
sazabi tasks mapping set --provider linear --resolved "Done"  # Map Resolved to Done
sazabi tasks mapping set --provider linear --ignored none  # Empty the Ignored row
sazabi tasks mapping set --provider jira --resolved "Done" --resolved-resolution "Fixed"  # Close resolved issues as Done / Fixed
sazabi tasks mapping set --provider jira --ignored "Done" --ignored-resolution "Won't Do"  # Close ignored issues as Done / Won't Do
sazabi tasks mapping set --provider github --enabled  # Turn it on; GitHub's rows come prefilled
sazabi tasks mapping set --provider github --connection-id <id> --enabled  # One of several GitHub installations

sazabi tasks mapping states

List the tracker states a row may take

sazabi tasks mapping states [options]
FlagTypeRequiredDescription
--tokenstringNoOverride token
--api-base-urlstringNoOverride API base URL
--jsonbooleanNoOutput as JSON
--organization-idstringNoOverride active organization ID
--providerstringNoTask tracker (linear, jira, github). Optional while one tracker with status mapping is connected
--connection-idstringNoThe tracker connection to act on; defaults to the organization's live connection. GitHub may have one per installation.
sazabi tasks mapping states --provider linear  # The default team's states and their types
sazabi tasks mapping states --provider jira  # The default project's statuses and the site's resolutions
sazabi tasks mapping states --provider github  # The three GitHub Issue states: open, closed as completed, closed as not planned