Skip to main content

Description

Interactive tool for testing and configuring project management integrations. Verifies credentials, tests API connections, and helps troubleshoot PM tool setup. Aliases: pm, link

Usage

Options

string
PM tool to test: jira, linear, or github
boolean
Run connection test only (non-interactive)
boolean
Run interactive setup for the selected tool
string
Fetch a specific ticket to verify connection
boolean
Show current credential status only

Examples

Interactive connection setup

Test Jira connection

Setup Linear

Verify with a specific ticket

Show credential status

Supported PM Tools

GitHub Issues

  • Uses gh CLI for authentication
  • No API tokens required
  • Automatic repo detection

Jira

  • REST API integration
  • Requires: base URL, email, API token
  • Supports project keys and custom ticket prefixes
Required credentials:

Linear

  • GraphQL API integration
  • Requires: API key
  • Supports team keys
Required credentials:
  • API key (from Linear Settings → API → Personal API keys)
  • Optional: team key

Interactive Flow

When running devdaily connect without options:
  1. Select PM tool - Choose from GitHub, Jira, Linear
  2. Check credentials - Shows what’s configured
  3. Setup if needed - Prompts for missing credentials
  4. Test connection - Verifies API access
  5. Test extraction - Shows ticket ID pattern matching
  6. Fetch sample ticket - Optional live verification

Credential Status

Shows configured credentials and their sources:

Connection Test

Tests the API connection and shows:
  • Success or failure status
  • Response time
  • Error hints if failed

Ticket Extraction Test

Shows how DevDaily will extract ticket IDs from:
  • Branch names
  • Commit messages
  • Multiple tickets

Live Ticket Test

Fetches a real ticket to verify:
  • API access
  • Permissions
  • Data format

Setup Flow

Jira Setup

Prompts for:
  1. Jira base URL
  2. Your email
  3. API token
  4. Project key (optional)
  5. Ticket prefix (optional)
Saves to .devdaily.secrets.json (auto-added to .gitignore).

Linear Setup

Prompts for:
  1. API key
  2. Team key (optional)
  3. Ticket prefix (optional)
Saves to .devdaily.secrets.json.

GitHub Setup

No credentials needed (uses gh CLI). Optionally prompts for:
  1. Ticket prefix (for extraction)

Credential Storage

Credentials are stored in .devdaily.secrets.json:
This file is automatically added to .gitignore.

Environment Variables

Alternatively, use environment variables:

Troubleshooting

Connection Failed

Jira:
  • Verify base URL (no trailing slash)
  • Check email is correct
  • Regenerate API token
  • Verify you have Jira access
Linear:
  • Verify API key is valid
  • Check key has required scopes (issues:read)
  • Ensure you’re on the right workspace
GitHub:
  • Run gh auth login
  • Verify you have repo access

Ticket Not Found

  • Check ticket ID is correct
  • Verify you have access to the ticket
  • Ensure ticket exists in the system
  • For Jira: verify project key matches

Pattern Extraction Issues

  • Set correct ticketPrefix in config
  • Match your team’s ticket ID format
  • Test with actual branch/commit names

Requirements

  • Configuration file (.devdaily.json)
  • PM tool access (API credentials or gh CLI)
  • Internet connection for API calls