| name | jira-lookup |
| description | Look up a Jira issue by key. Shows summary, status, assignee, priority, and link. |
| user-invocable | true |
| arguments | <JIRA-KEY> (e.g. PROJ-123) |
Jira Issue Lookup
Look up a Jira issue using the REST API and display its details.
Steps
- Read
config.yaml to get features.jira.baseUrl. If not set, ask the user.
- Use
$JIRA_EMAIL and $JIRA_TOKEN environment variables for authentication.
- Fetch the issue via:
curl -s -u "$JIRA_EMAIL:$JIRA_TOKEN" \
-H "Accept: application/json" \
"${BASE_URL}/rest/api/3/issue/${JIRA_KEY}?fields=summary,status,assignee,priority"
- Display the results:
Error Handling
- If the issue is not found (404), report "Issue not found".
- If authentication fails (401/403), report "Authentication failed — check JIRA_EMAIL and JIRA_TOKEN env vars".
- If baseUrl is not configured, report "Jira base URL not configured — set features.jira.baseUrl in config.yaml".