batch
Execute multiple API operations in a single invocation
Execute multiple Jira API operations from a JSON array.
Input JSON array format: [ {"command": "issue get", "args": {"issueIdOrKey": "FOO-1"}, "jq": ".key"}, {"command": "project search", "args": {}} ]
Output JSON array format: [ {"index": 0, "exit_code": 0, "data": "FOO-1"}, {"index": 1, "exit_code": 0, "data": [...]} ]
Use --input to specify a file, or pipe JSON to stdin.
| Flag | Type | Required | Description |
|---|---|---|---|
--input | string | No | path to JSON input file (reads stdin if not set) |
--max-batch | int | No | maximum number of operations per batch |
Example:
bash
jr batch