Skip to content

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.

FlagTypeRequiredDescription
--inputstringNopath to JSON input file (reads stdin if not set)
--max-batchintNomaximum number of operations per batch

Example:

bash
jr batch