| name | jira |
| description | This skill should be used when the user mentions Jira issues (e.g., "PROJ-123"), asks about tickets, wants to create/view/update issues, check sprint status, or manage their Jira workflow. Triggers on keywords like "jira", "issue", "ticket", "sprint", "backlog", or issue key patterns.
|
Jira CLI Skill
This skill enables natural language interaction with Jira via the jira CLI
tool (https://github.com/ankitpokhrel/jira-cli).
Quick Reference
| Intent | Command |
|---|
| View issue | jira issue view ISSUE-KEY |
| List my issues | jira issue list -a$(jira me) |
| My in-progress | jira issue list -a$(jira me) -s"In Progress" |
| Create issue | jira issue create -tType -s"Summary" -b"Description" |
| Move/transition | jira issue move ISSUE-KEY "State" |
| Assign to me | jira issue assign ISSUE-KEY $(jira me) |
| Unassign | jira issue assign ISSUE-KEY x |
| Add comment | jira issue comment add ISSUE-KEY -b"Comment text" |
| Open in browser | jira open ISSUE-KEY |
| Current sprint | jira sprint list --state active |
| Who am I | jira me |
Command Details
Viewing Issues
jira issue view ISSUE-KEY
jira issue view ISSUE-KEY --comments 5
jira issue view ISSUE-KEY --raw
Listing Issues
jira issue list
jira issue list -a$(jira me)
jira issue list -s"In Progress"
jira issue list -s"To Do"
jira issue list -sDone
jira issue list -tBug
jira issue list -tStory
jira issue list -tTask
jira issue list -tEpic
jira issue list -yHigh
jira issue list -yCritical
jira issue list -lurgent -lbug
jira issue list -a$(jira me) -s"In Progress" -yHigh
jira issue list "login error"
jira issue list --history
jira issue list -w
jira issue list --created today
jira issue list --created week
jira issue list --updated -2d
jira issue list --plain --no-headers
jira issue list --plain --columns key,summary,status,assignee
jira issue list -q"status = 'In Progress' AND assignee = currentUser()"
jira issue list --paginate 20
jira issue list --paginate 10:50
Creating Issues
jira issue create
jira issue create \
-tBug \
-s"Login button not working" \
-b"Users cannot click the login button on Safari" \
-yHigh \
-lbug -lurgent
jira issue create -tTask -s"Summary" -a$(jira me)
jira issue create -tSub-task -P"PROJ-123" -s"Subtask summary"
jira issue create -tStory -s"Summary" --custom story-points=3
jira issue create -tTask -s"Quick task" --no-input
jira issue create -tBug -s"Bug title" --web
jira issue create -tStory -s"Summary" --template /path/to/template.md
echo "Description here" | jira issue create -tTask -s"Summary"
Transitioning Issues
jira issue move ISSUE-KEY "In Progress"
jira issue move ISSUE-KEY "Done"
jira issue move ISSUE-KEY "To Do"
jira issue move ISSUE-KEY "Done" --comment "Completed the implementation"
jira issue move ISSUE-KEY "Done" -R"Fixed"
jira issue move ISSUE-KEY "In Review" -a"reviewer@example.com"
jira issue move ISSUE-KEY "Done" --web
Assigning Issues
jira issue assign ISSUE-KEY "user@example.com"
jira issue assign ISSUE-KEY "John Doe"
jira issue assign ISSUE-KEY $(jira me)
jira issue assign ISSUE-KEY default
jira issue assign ISSUE-KEY x
Comments
jira issue comment add ISSUE-KEY -b"This is my comment"
jira issue comment add ISSUE-KEY --template /path/to/comment.md
Sprints
jira sprint list
jira sprint list --state active
jira sprint add SPRINT-ID ISSUE-KEY
jira sprint close SPRINT-ID
Other Commands
jira open ISSUE-KEY
jira me
jira serverinfo
jira project list
jira board list
Natural Language Mapping
When interpreting user requests, map these patterns:
| User says | Interpret as |
|---|
| "my issues", "my tickets" | -a$(jira me) |
| "in progress", "working on" | -s"In Progress" |
| "todo", "to do", "backlog" | -s"To Do" |
| "done", "completed", "finished" | -sDone |
| "bugs", "defects" | -tBug |
| "stories", "features" | -tStory |
| "tasks" | -tTask |
| "epics" | -tEpic |
| "high priority", "urgent" | -yHigh or -yCritical |
| "blocked" | -s"Blocked" or search for "blocked" |
| "this week" | --created week or --updated week |
| "today" | --created today |
| "recent", "recently" | --history |
| "watching" | -w |
| "assign to me" | $(jira me) |
| "unassign" | x |
| "open it", "show in browser" | jira open |
Issue Key Detection
Issue keys follow the pattern: [A-Z]+-[0-9]+ (e.g., PROJ-123, ABC-1).
When a user mentions an issue key in conversation:
- Offer to view it:
jira issue view KEY
- Or open it:
jira open KEY
Tips
- Always show the command before running it
- Use
--plain for scripting or when output is too wide
- Use
$(jira me) to reference the current user
- Quote multi-word status names:
-s"In Progress"
- Combine filters to narrow results
- Use
--raw when you need to parse JSON output
- The
-p flag can override the default project
Error Handling
Common issues:
- "Issue does not exist" - verify the issue key
- "Transition not allowed" - check current status and available transitions
- "User not found" - use exact email or display name