managing-jira
Managing Jira
CLI-based Jira operations using jira-cli (ankitpokhrel/jira-cli).
Quick Start
Verify authentication before any operation:
jira me
If this fails, inform the user to run jira init to configure authentication.
Workflow Patterns
Start Work on Issue
jira issue assign PROJ-123 $(jira me)
jira issue move PROJ-123 "In Progress"
Complete Issue
jira issue move PROJ-123 "Done" --resolution "Fixed"
jira issue comment add PROJ-123 -b"Completed in PR #123"
Daily Standup
jira issue list --jql "assignee = currentUser() AND status = 'In Progress'"
jira issue list --jql "assignee = currentUser() AND status = 'Blocked'"
Error Handling
# Check if issue exists
if ! jira issue view PROJ-123 >/dev/null 2>&1; then
echo "Issue not found"
fi
# Check if transition is valid
available=$(jira issue transitions PROJ-123 2>/dev/null)
if ! echo "$available" | grep -q "In Progress"; then
echo "Cannot transition to In Progress"
fi
Best Practices
- Use
$(jira me)for current user instead of hardcoding email addresses - Prefer non-interactive mode with
--no-inputand explicit flags - Validate transitions by checking available transitions first
- Use
--plain --no-headerswhen parsing output programmatically - Write multi-line content to /tmp first - the CLI struggles with inline multi-line strings
References
- cli-reference.md - Complete command reference with all flags and options
- jql-reference.md - Advanced JQL queries, operators, functions, and bulk operations
More from bnadlerjr/dotfiles
applying-swiss-design
Applies Swiss/International Typographic Style principles to create clear, functional output. Use when designing interfaces, data visualizations, documentation, CLI output, or any output where clarity matters. Recognizes requests like "make it cleaner", "reduce clutter", "too busy", "improve readability", "visual hierarchy", "simplify the layout".
1coding-workflow
Use when user asks to build a feature, implement something new, or make significant code changes. Recognizes requests like "build", "implement", "create a new feature", "add functionality", "develop", "I need to build X", "let's implement", "new feature request", "make these changes". Orchestrates a four-stage workflow (Research → Brainstorm → Plan → Implement) using the appropriate thought pattern skill at each stage.
1practicing-tdd
Enforces test-first development with Red-Green-Refactor cycle. Use when implementing features, fixing bugs, writing tests, or when someone mentions TDD, test-driven, "test first", or "write a failing test".
1datadog-cli
Datadog CLI for searching logs, querying metrics, tracing requests, and viewing dashboards. Use this when debugging production issues or working with Datadog observability.
1creating-agents
Expert guidance for creating, auditing, and improving Claude Code agent definition files (.md). Use when working with ~/.claude/agents/ files, authoring new sub-agents, improving existing agents, or understanding agent configuration and system prompt best practices.
1writing-prompts
Write agentic prompts including system prompts, workflow prompts, delegation prompts, and meta prompts. Use when creating commands, automating workflows, making tasks reusable, or when the user says "write a prompt", "create a command", or "automate this".
1