Skip to content

Commit 74dd80f

Browse files
fix(agents): fix jira me flag usage in jira skill
jira me does not support --plain or --raw flags. Replace jira me --plain with jira me for the pre-flight check, user profile display, and assign-to-self patterns. Replace jira me --raw JSON extraction with plain-text AccountID parsing via grep and awk. Generated with AI Co-Authored-By: codemie-ai <codemie.ai@gmail.com>
1 parent 9f4c7db commit 74dd80f

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

  • src/agents/plugins/claude/plugin/skills/jira

src/agents/plugins/claude/plugin/skills/jira/SKILL.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ command -v jira >/dev/null 2>&1 && echo "INSTALLED" || echo "NOT_INSTALLED"
4646
**If installed**, verify the connection:
4747

4848
```bash
49-
jira me --plain 2>&1
49+
jira me 2>&1
5050
```
5151

5252
**If this returns an error** (e.g., "configuration not found", "unauthorized", "connection refused"):
@@ -182,11 +182,11 @@ jira issue view PROJ-123 --plain
182182
### Assign an issue
183183

184184
```bash
185-
# Get current user's username first
186-
jira me --plain
185+
# Get current user's account ID first
186+
jira me
187187

188-
# Assign to yourself
189-
jira issue assign PROJ-123 $(jira me --raw | grep -o '"name":"[^"]*"' | head -1 | cut -d'"' -f4)
188+
# Assign to yourself (extract AccountID from jira me output)
189+
jira issue assign PROJ-123 $(jira me | grep -i "AccountID" | awk '{print $NF}')
190190

191191
# Assign to a specific user (use their Jira username or account ID)
192192
jira issue assign PROJ-123 "john.doe"
@@ -337,7 +337,7 @@ jira epic view PROJ-10 --plain
337337
jira project list --plain
338338

339339
# Current user profile
340-
jira me --plain
340+
jira me
341341
```
342342

343343
---
@@ -365,7 +365,7 @@ jira me --plain
365365
```
366366
5. **Assign to self** (if unassigned):
367367
```bash
368-
jira issue assign PROJ-123 $(jira me --raw | grep -o '"name":"[^"]*"' | head -1 | cut -d'"' -f4)
368+
jira issue assign PROJ-123 $(jira me | grep -i "AccountID" | awk '{print $NF}')
369369
```
370370
6. **Implement** — write code based on the ticket description
371371
7. **After implementation** — update the ticket (see Pattern 2)

0 commit comments

Comments
 (0)