acli Jira Subcommand Syntax
The acli CLI tool uses a modern subcommand-based syntax for Jira operations. Do NOT use the deprecated --action flag pattern. This skill prevents the common mistake of using acli jira --action getIssueList and similar flag-based patterns that will fail.
Instructions
- •When running any
aclicommand for Jira, always use the subcommand pattern:acli jira <resource> <action> [flags]. - •To search for Jira issues, use
acli jira workitem searchwith the--jqlflag for the query and--fieldsflag for output columns. - •Never use
--actionas a flag withacli. The action is always a positional subcommand. - •If a command fails with "unknown flag: --action", rewrite it using the subcommand pattern described here.
Syntax Reference
The general pattern for acli Jira commands is:
code
acli jira <resource> <action> [--flag value ...]
Searching for Issues
bash
acli jira workitem search --jql "<JQL query>" --fields "<comma-separated fields>"
Common flags for acli jira workitem search:
- •
--jql- JQL query string - •
--fields- Comma-separated list of fields to display (e.g., "key,summary,priority,status") - •
--csv- Output in CSV format - •
--json- Output in JSON format - •
--limit- Limit number of results - •
--paginate- Enable pagination - •
--filter- Use a saved filter - •
--web- Open results in web browser - •
--count- Show count only
Examples
Example 1: List unresolved tickets assigned to current user
Input:
code
Show me my open Jira tickets
Command:
bash
acli jira workitem search --jql "assignee = currentUser() AND resolution = Unresolved ORDER BY priority DESC" --fields "key,summary,priority,status"
Example 2: Common mistake to avoid
Incorrect (will fail with "unknown flag: --action"):
bash
acli jira --action getIssueList --jql "assignee = currentUser()"
Correct:
bash
acli jira workitem search --jql "assignee = currentUser()"
Troubleshooting
| Problem | Cause | Fix |
|---|---|---|
Error: unknown flag: --action | Using deprecated --action flag syntax | Rewrite using subcommand pattern: acli jira workitem search instead of acli jira --action getIssueList |
Error: unknown command | Wrong resource or action name | Run acli jira --help to see available subcommands, then acli jira workitem --help for actions |