Skip to content
Agentmart
Submit a tool

jira-get-fields

Fetch Jira Cloud issue fields through Jira REST API v3 and return a compact, cleaned JSON payload.

Skill by prakhar1114

IndexedMIT
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/prakhar1114-jira-get-fields

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Fetch Jira Cloud issue fields through Jira REST API v3 and return a compact, cleaned JSON payload. Use when the user wants issue field values, custom fields, description text, comments, subtasks, or other returned Jira fields without duplicate metadata-heavy structures.

Use cases: backend

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found
Runs as
Python package

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/jira-get-fields

What's inside

Skill name
jira-get-fields
Description
Fetch Jira Cloud issue fields through Jira REST API v3 and return a compact, cleaned JSON payload. Use when the user wants issue field values, custom fields, description text, comments, subtasks, or other returned Jira fields without duplicate metadata-heavy structures.
License
MIT
Instructions
69 lines in SKILL.md · view on GitHub

Before installing

  • Ships executable scripts

Files (7)

  • SKILL.md
  • credentials.template.json
  • inputs.example.json · inputs/
  • inputs.template.json · inputs/
  • fallback_plan.md · references/
  • run.sh
  • run.py · scripts/

SKILL.md (first lines)

# Jira Get Fields

Fetches all returned fields for one Jira Cloud issue via `GET /rest/api/3/issue/{issueIdOrKey}?fields=*all&expand=names,schema`, then returns a cleaned JSON object. The cleanup runs after the raw Jira payload is built and before the final result is printed.

## Inputs
- `ticket` (string, required): Jira issue key, e.g. `KAN-2`.

Inputs are read from a JSON file (see `inputs/inputs.example.json`).

## Run
```bash
./run.sh inputs/inputs.example.json
```

`run.sh` uses the first available interpreter in this order: skill `.venv/bin/python`, workflow `.venv/bin/python`, then required `$AI_MIME_PYTHON_PATH`.

This skill uses only the Python standard library, so there is no `requirements.txt` and no `.venv` is required. If a future change adds third-party packages, build/repair the environment manually with:
```bash
"$AI_MIME_UV_PATH" venv .venv --python "$AI_MIME_PYTHON_PATH"
"$AI_MIME_UV_PATH" pip install -r requirements.txt --python .venv/bin/python
```
These install commands are for skill build or manual repair only. Runtime does not create or repair `.venv`.

## Outputs
On success the script prints a JSON object to stdout:
- `ticket`: Fetched issue key.
- `ticket_id`: Jira internal issue id, when returned.
- `ticket_url`: Browse URL of the ticket.
- `field_count`: Number of fields returned by Jira for the issue.
- `fields`: Object keyed by Jira field id containing cleaned values.
- `auth_method`: `api_token` or `browser_session`.

Cleanup rules:
- Drops `fields_by_id` entirely.
- Converts the field list into a single object, e.g. `"summary": "Task 2-1"`.
- Flattens common Jira objects to readable strings, e.g. user `displayName` and metadata `name`.
- Extracts plain text from Atlassian Document Format fields such as `description`.
- Returns `comment` as `comments`, with each comment reduced to `author`, `body`, and `created`.
- Reduces `subtasks` to `key`, `summary`, `status`, and `issuetype`.

## Progress log format
Structured JSON events are emitted on stderr:
- `{"event":"step_start","id":"get_issue_fields","title":"..."}`
- `{"event":"step_done","id":"get_issue_fields","outputs":{...},"summary":"..."}`
- `{"event":"step_failed","id":"get_issue_fields","error":"...","recoverable":false}`
- `{"event":"workflow_done","outputs":{...}}`

Exit code is non-zero on failure.

## Credentials
Service `jira` (filled in from `credentials.template.json`):
- `email`: Atlassian account email.
- `api_token`: Jira API token from id.atlassian.com.
- `domain`: site domain, e.g. `your-company.atlassian.net`.

Read at runtime from `$AI_MIME_CREDENTIALS_PATH`. Never hardcoded.

## Fallback
If API-token authentication fails and `$AI_MIME_BROWSER_HARNESS_BIN` is available, the script opens the issue in the user's existing Chrome session and performs the same Jira REST reads from that authenticated browser context. Chrome must already be logged into the Jira site for this fallback to work.

If both automated paths fail, see `references/fallback_plan.md` for manual API and browser-session steps.

## ask_llm decision points
None. The task is fully deterministic.

## References
- `references/fallback_plan.md` - manual steps and curl/browser equivalent.

From prakhar1114/ai_mime_marketplace, MIT.

More from prakhar1114/ai_mime_marketplace

Signals

Stars
0
Forks
0
Open issues
0
Last commit (this folder)
Jul 1, 2026 (4 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from prakhar1114

Cite this page

jira-get-fields skill. Agent Mart. https://agentmart.dev/skills/prakhar1114-jira-get-fields (last updated 2026-10-24)