# Payload Examples

Use these templates as files for `scripts/jira_api.sh` commands.

## Create issue payload (`issue-create`)

```json
{
  "fields": {
    "project": { "key": "OPS" },
    "issuetype": { "name": "Task" },
    "summary": "Investigate API latency",
    "description": {
      "type": "doc",
      "version": 1,
      "content": [
        {
          "type": "paragraph",
          "content": [
            { "type": "text", "text": "Created by automation" }
          ]
        }
      ]
    }
  }
}
```

## Update issue payload (`issue-update`)

```json
{
  "fields": {
    "summary": "Investigate API latency (updated)",
    "priority": { "name": "High" }
  }
}
```

## JQL search payload (`issue-search-jql`)

```json
{
  "jql": "project = OPS AND statusCategory != Done ORDER BY updated DESC",
  "maxResults": 50,
  "fields": ["summary", "status", "assignee", "updated"]
}
```
