Part of atlassian-cli

JSM CLI

Automate Jira Service Management from your terminal. Service desks, requests, customers, 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 --output json

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

Customer Management

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

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

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

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

Service Desk Operations

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

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

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

# Combine with table output for quick overview
atlassian-cli jsm request list \
  --limit 25 --output 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 your-domain.atlassian.net \
  --email you@company.com

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

# List your service desks
atlassian-cli jsm servicedesk list

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

Related Resources

Learn more about atlassian-cli

Copied!