acceptance.
It never reports that something the ticket asks for is missing. A review sees part of a change, never all of it, and the rest of the ticket may be done in another pull request.
Requirements
- Jira Cloud (
*.atlassian.net). Jira Server and Jira Data Center are not supported. - An owner of the organization in the CodeWarden console, to connect it.
- Someone who can merge to the base branch, to list the allowed projects in
.codewarden.yml.
Set it up
1
Connect Jira in the console
On the console’s home page, open the installation and, under Integrations, click Connect Jira. Atlassian asks you to grant CodeWarden read access. If your Atlassian account can see several Jira sites, the console then asks Which site?; pick one.One installation has one Jira site. Connecting again replaces the previous grant, which is also how a broken connection is repaired.
2
Allow the projects in .codewarden.yml
Add the Jira project keys a pull request may link tickets from, and merge it into the base branch:Without this list no ticket is read, even with Jira connected. On a public repository, nothing is read unless
.codewarden.yml
public_repositories is true.3
Link the ticket in the pull request
Put the ticket’s URL in the pull request’s title or description:A bare key such as
PROJ-123 is not matched; only a full URL is. The review’s summary ends with Checked against PROJ-123. when the ticket was read.When a ticket is read
All of these must hold. Otherwise the review runs without the ticket, and the console shows why on the review’s page.- The URL is in the pull request’s title or description, in the form
https://<site>/browse/<KEY-123>. - The ticket’s project is listed in
jira.projectson the base branch. - The URL’s site is the site connected to the installation. A link to any other site is never read.
- The repository is private, or
jira.public_repositoriesistrue. - The connection is working.
What is read
The ticket’s summary, description, type, status and project, in one read-only request per review. The text is shown to the model as data to check the code against, never as instructions. CodeWarden asks Atlassian only for read scopes (read:jira-work and offline_access). It never creates, edits or comments on Jira issues.
What is stored
- The connection’s tokens, encrypted at rest, because reviews use them when nobody is signed in. They are renewed automatically, and a connection idle for 30 days is renewed in the background so Atlassian does not expire it.
- Which ticket was used: its key, site, URL, and the outcome of the read, on the review’s record.
- Not the ticket’s text. The model reads the title and description, but the copy of the prompt CodeWarden keeps has them removed.
Connection states
The installation’s Integrations box in the console shows one of:Disconnect and revoke
- In the console: an owner clicks Disconnect in the installation’s Jira box. The stored tokens are deleted.
- In Atlassian: the person who connected it can remove CodeWarden at id.atlassian.com → Connected apps, or a site administrator can remove the app from the site.