Jira
Connect Jira to file Cofactor issues as Jira tickets, keep their status in sync and get test results on a ticket.
Connect Jira and a Cofactor issue can become a Jira ticket in one step. When the ticket is done, Cofactor closes the issue. Tests that start from a ticket write their result back onto it.
Connect Jira
An organization admin connects Jira.
- Open Settings, then Jira Integration.
- Select Connect with OAuth and approve the Cofactor app in Jira.
- Under Default Settings, pick a Default Project and a Default Issue Type, then select Save Settings. New tickets use these.
File a Cofactor issue as a Jira ticket
Open the issue and select Create Jira Ticket in the drawer, or run the command. The ticket links back to the issue.
cofactor tickets file <issue id> --provider jira
If Jira is the only tracker you connected, --provider is not needed. See Issues.
Keep status in sync
When a Jira ticket's status reaches the Done category, Cofactor closes the linked issue. Saving a default project turns this on. Status Sync (Webhook) on the Jira page shows Sync Active or Needs Attention.
- If it shows Needs Attention and a Repair Sync button, select it.
- If it shows Needs Attention and asks for a default project, pick one and select Save Settings.
- When it shows Sync Active, Re-register creates the webhook again.
Test a ticket from Slack
In a Slack thread, ask Cofactor to test a ticket by its key. When the test finishes, Cofactor comments on the ticket with a verdict, what was tested, what passed and failed, and what it could not test. The comment lists the issues it found, with links to them and to their replays. See Slack.
Check it worked
In Settings, Jira Integration, the Connected badge shows. Status Sync (Webhook) reads Sync Active, and Webhooks Active shows beside Connected. File one issue as a ticket and open it in Jira.
Fix a problem
| Symptom | What to check |
|---|---|
| Needs Attention under status sync | Save a default project, then select Repair Sync if it shows. |
| Filing fails | Confirm the default project and issue type are saved, and that the project allows that issue type. |
| Slack finds no ticket | Search by the exact key, and confirm Jira shows as connected. |
Go deeper
- Issues covers closing and filing issues.
- Slack covers asking Cofactor to test a ticket.
- Reference: Linear, Azure DevOps
Start a test by tagging a ticket (early access) and removing the webhook.
Tag a ticket to start a test (early access). If Tickets shows in the Labs section of your sidebar, set a Tag and an Application there, and an Environment if you want one. When a ticket gets the tag, an agent tests it and writes the result onto the ticket. With several trackers connected, choose Jira as the ticket source on that page first.
To remove the webhook, select Remove under Status Sync (Webhook) while sync is active. Status sync then stops.