File Jira issues automatically when API tests fail
When a nightly API test run fails, what happens next? Too often: someone sees a red badge in the morning, assumes someone else is on it, and nobody is. Or someone copies log lines into a Jira ticket by hand, and the ticket says "API tests failing" with no detail.
The Requestarium CLI can do this part for you. When a run fails, it files a Jira issue with everything needed to start on it, or adds a comment to the issue that's already open.
Set it up once
- An organization admin connects Jira in Requestarium under Settings → Integrations. This needs the Pro, Team or Enterprise plan.
- Create an API token with write access to collections for CI, and store it as
REQUESTARIUM_TOKENin your CI's secrets.

That's it. There's no Jira token in your CI, because issues are created through the connected integration.
Add one flag
requestarium run-collection "Orders API" --env Staging --jira-on-failure OPSOPS is the Jira project key. When the run passes, nothing happens. When it fails (a request fails, errors or has a failed test), the CLI saves the run to Requestarium and then:
- If there's already an open issue for this collection (and folder) on the same branch, it adds a comment to it with the new failures and links this run.
- Otherwise it files a new issue, with a summary like "Orders API: 2 of 10 requests failed", the environment, branch, commit and CI job, and the failed requests in a code block. The issue links back to the run in Requestarium, and the run shows the issue.

The comment-instead-of-duplicate rule is what makes this usable. A collection that stays broken for three days while someone fixes it produces one issue with three comments, not three issues.
Choose the issue type
The issue type is Bug when the project has one, otherwise the project's first type. Pick another with:
requestarium run-collection "Orders API" --env Staging --jira-on-failure OPS --jira-issue-type TaskIn GitHub Actions
on:
schedule:
- cron: '0 3 * * *'
jobs:
nightly-api:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-node@v4
with:
node-version: 22
- run: npm install -g @requestarium/cli
- env:
REQUESTARIUM_TOKEN: ${{ secrets.REQUESTARIUM_TOKEN }}
run: requestarium run-collection "Orders API" --env Staging --retries 2 --jira-on-failure OPS--retries 2 keeps a staging restart from filing an issue; a real failure still does.
Jira problems never break the build
If Jira can't be reached, the plan doesn't include Jira, or the project key is wrong, the CLI prints the problem on standard error and moves on. The exit code is always the run's own result, so a Jira outage never turns a green build red, or a red one green.
From an AI agent too
The Requestarium MCP server has the same option: run_collection with jiraProject reports a failed run to Jira. "Run the Orders API collection against Staging and file a Jira issue in OPS if it fails" is a complete instruction for an agent.