Skip to main content
Proton v5

Jira

With the Jira Cloud integration, Proton links automations to Jira requirements and opens bugs from failed runs, with the report, the log and the link. Traceability then shows the requirements and the open bugs of each dataset.

Set up​

In Settings > Integrations, register an integration of type Jira with the Base URL, the Jira Cloud address (such as https://yourcompany.atlassian.net), and choose in How Proton signs in to Jira:

  • Service account (recommended): the Client ID and Client Secret of an Atlassian service account. The integration does not depend on any person.
  • Email and API token: the Email and API Token of a Jira account with access to the projects. If the person leaves the company or changes the token, the integration stops working.

Use Test Connection before saving. When editing, the Authentication section shows the saved mode; to switch the mode or the credential, use Update Credentials.

See Integrations. Without the integration, the Jira features don't show up in the portal.

Create the service account​

An admin of the organization at Atlassian does this at admin.atlassian.com:

  1. In Directory > Service accounts, create the service account and give it access to Jira.
  2. In Jira, give the service account access to the projects Proton uses, with permission to browse and create issues, add attachments and link issues. The simplest way is to add the account to a group or project role that already has these permissions.
  3. On the service account, create an OAuth 2.0 credential with the Jira scopes read:jira-work, write:jira-work and read:jira-user.
  4. Copy the Client ID and Client Secret into Proton. The Client Secret is shown only when it is created: if it is lost, create another credential.

Proton exchanges the credential for temporary access and renews it on its own. The credential is stored encrypted in Proton and is never shown on screen again.

Requirements​

In Proton, a requirement is a Jira issue, such as a story or an epic. A requirement is linked to a whole automation or to a dataset, and the dataset inherits the automation's requirements.

To link one:

  1. In the automation's dataset list (or when editing the dataset), use Requirements, which shows how many are linked.
  2. In the Requirements drawer, search Jira by key (PROJ-123) or by text in the summary.
  3. Pick the issue. It shows up with its Jira status, grouped under Of this dataset and From the automation.

Unlink requirement removes the link in Proton; nothing changes in Jira. Requirements that come from Xray or Zephyr Tests (the Test coverage) can't be unlinked here.

The summary and status of the issues are read again from Jira from time to time (every 15 minutes at most). When Jira is down, Proton shows the last reading.

Bug from a run​

In the run details and in the group's failure drawer, Jira bug offers:

  • Open bug, already filled in with the error, the log and the link to the run. It's available once the run finishes.
  • Link existing bug, for an issue that is already open.

The Open bug in Jira window has the Project, the Type (the last one used comes selected, or the one with "bug" in its name), the Summary (up to 250 characters) and the Description, plus two options that are on by default:

  • Attach the run report (PDF);
  • Link to the dataset requirements, which creates in Jira a link between the bug and each requirement.

The linked bug shows up as a badge that opens the issue. The X unlinks the bug from the run in Proton; in Jira, the bug stays.

The AI failure diagnosis also offers to open the bug.

Tests in Jira (no Xray or Zephyr)​

For teams that manage tests with Jira issues: a test issue type (such as Test), inside an epic, with the board columns marking the result. Each dataset is linked to a test card, and Proton brings the result of every run to it.

Turn on​

When editing the Jira integration, turn on Tests in Jira and set:

  • What goes to the card on every run: the comment always goes; the Result PDF (the consolidated report of the run) is on by default and can be turned off; the Card status follows the map of each project.
  • How the bug is linked to the test card: Related to the test (default), Blocks the test or another Jira link. The preview shows how the bug appears in the card links.
  • Projects with test cards: add the project. Proton reads its issue types and picks Test. In Card status per result, choose the Jira status for each moment of the run: Not run (when the batch is created), Running, Passed, Failed and Stopped or cancelled. Proton suggests them from the status names; check before saving. A result without a status leaves the card where it is and only sends the comment.

In those projects, the integration account must be able to create, edit and comment on issues, attach files, link issues and make the workflow transitions.

Use​

With tests in Jira on, the Xray and Zephyr screens work with Jira:

  • On the dataset, link an existing test card or use Create in Jira: the card is born in the project, with the proton label and the steps table in the description (the "Passos (mantidos pelo Proton)" section). Update in Jira replaces the text and keeps the table.
  • On the group, the Jira button sets up publishing: the project and the Group epic (optional; the cards Proton creates are born in it).
  • Import from Jira brings an epic: its test cards are linked to datasets with similar names, and the ones without a match become datasets to automate.

On every run:

  1. The card moves to the status chosen for the moment. If the Jira workflow does not go straight to it, the card stays where it is and the run shows the Status unchanged warning.
  2. When the run ends, the card gets a comment with the result, the link to the run, the environment, the step where it stopped, the error and the AI analysis, plus the Proton: última execução link in the links section.
  3. With the PDF on, the run report is attached to the card.

The bug opened from the run is born linked to the dataset test card, with the link chosen in the integration.

In traceability​

With Jira, Traceability gets the Requirements indicator and the Requirements column (with the status of each issue) and the Open bugs column (bugs opened from the dataset's runs that haven't been resolved in Jira yet).

Permissions​

ActionProfile permission
View requirementsJira requirements: read
Link and unlink requirementsJira requirements: update
View bugsJira bugs: read
Open and link bugsJira bugs: create