Part of atlassian-cli

Jira Service Management CLI (JSM)

Automate Jira Service Management from your terminal. Service desks, requests, customers, SLAs, and queues — scriptable ITSM operations.

JSM Features

Service management automation from the command line

Service Desk Operations

List and inspect service desks. Get desk details including request types, portal settings, and queue configuration.

Request Management

List, get, and filter service requests. View request details, status, and resolution. Scriptable ticket triage workflows.

Customer Portal

Manage customers and organizations. List portal users, add customers to service desks, and audit access.

SLA Tracking

Monitor SLA compliance across service desks. Track time-to-first-response and time-to-resolution metrics via CLI.

Knowledge Base

Access knowledge base articles linked to service desks. Integrate KB content into automated workflows and runbooks.

Queue Automation

Query and manage service desk queues. Filter requests by status, priority, and assignee. Pipe output to scripts.

Code Examples

Automate service management tasks

Query Service Requests

# List recent service requests
atlassian-cli jsm request list --limit 10

# Get details of a specific request
atlassian-cli jsm request get SD-123

# Output as JSON for scripting
atlassian-cli jsm request list \
  --limit 50 --format json

# Export requests to CSV
atlassian-cli jsm request list \
  --format csv > requests.csv

Customer Management

# List service desks to find the desk ID
atlassian-cli jsm service-desk list

# List requests filtered by service desk
atlassian-cli jsm request list \
  --limit 20 --format json

# Get request details with full metadata
atlassian-cli jsm request get SD-456 \
  --format json

# Combine with Jira for cross-product views
atlassian-cli jira issue search \
  --jql "project = SD ORDER BY created DESC" \
  --limit 10

Service Desk Operations

# List all service desks
atlassian-cli jsm service-desk list --limit 10

# Get service desk details as JSON
atlassian-cli jsm service-desk list \
  --format json

# Use profiles for different instances
atlassian-cli jsm service-desk list \
  --profile production

# Combine with table output for quick overview
atlassian-cli jsm request list \
  --limit 25 --format table

Quick Start

Set up JSM CLI access in seconds

# Install via Homebrew
brew install omar16100/atlassian-cli/atlassian-cli

# Configure authentication
atlassian-cli auth login \
  --profile work \
  --base-url https://your-domain.atlassian.net \
  --email you@company.com

# Verify connection
atlassian-cli auth test --profile work

# List your service desks
atlassian-cli jsm service-desk list

# View recent requests
atlassian-cli jsm request list --limit 5

Related Resources

Learn more about atlassian-cli

JSM CLI FAQ

Jira Service Management from the command line

How do I manage Jira Service Management from the command line?

atlassian-cli is a JSM CLI for service desks, customer requests, queues, SLAs, approvals, organizations and request types. After authenticating, run commands like atlassian-cli jsm request list --servicedesk-id 10 or atlassian-cli jsm request create --servicedesk-id 10 --request-type-id 7 --summary "...". See the full JSM command reference.

Can I create and transition JSM requests from the CLI?

Yes. Use atlassian-cli jsm request create to raise a request, jsm request transition to move it through its workflow, and jsm request add-comment to reply — all scriptable for automation.

Is atlassian-cli the official Jira Service Management CLI?

No. atlassian-cli is an independent, open-source tool and is not affiliated with, endorsed by, or maintained by Atlassian. Atlassian ships its own separate official CLI (acli).

Is the JSM CLI free?

Yes. atlassian-cli is free and open source under the MIT License. Get it on the install page or GitHub.

Copied!