Jira Integration
Jira Integration #
With the mirrord Jira integration you can track how much mirrord has been used for each task on a per-issue basis, both as total time of use and the number of times it was used.

The operator is able to report mirrord session times to the mirrord app installed on your Jira instance, which allows you to view the total time and number of sessions that developers have spent using mirrord for each Jira issue.
Setting up Jira integration #
- Go to the installation link to install the
mirrord for Jira
app (you must be a Jira admin). - In Jira, go to the mirrord admin page under
Jira admin settings
>Apps
>mirrord by MetalBear
and choose which projects to display the panel on. If you skip this step, the metrics will not be displayed on any issues in your Jira instance. - Update the operator according to the instructions on the admin page.
- Ensure everything is up to date (mirrord IDE plugins and mirrord binary version, as well as the CLI tool):
Application | Minimum Version |
---|---|
operator | 3.116.1 |
mirrord | 3.145.0 |
VSCode plugin | 3.66.0 |
IntelliJ plugin | 3.68.0 |
To verify that the app in installed properly, navigate to an issue in a project you selected in step 2 and check for the
mirrord by MetalBear
context panel in the right sidebar.
Using the Jira integration #
When viewing an issue in Jira, the number of sessions and total session duration will be shown in a context panel in the right sidebar called mirrord by MetalBear
. This panel will be displayed on all issues belonging to the projects that were selected in the admin page.
To use the Jira integration while running mirrord, users must be on a git branch containing the (case sensitive) Jira issue key of the issue they’re working on, eg. my-new-branch-KEY-123-latest
for issue KEY-123
.
Troubleshooting #
The operator will emit logs with details upon successful session reporting, or upon encountering an error. When metrics are successfully reported, the operator will emit a DEBUG
log with a link to the Jira issue that was updated. If the operator is up to date with the Jira webhook configured but did not successfully report metrics:
- If no branch name was recieved by the operator, a
DEBUG
log will be emitted. This can happen if a mirrord user is not using the latest version of the mirrord CLI or plugin, or if they are not currently on a git branch. - If the branch name was present but the operator still fails to report metric to the Jira app, a
WARN
log will be emitted with more details.
Known Issues #
- Metrics reporting will not work for
jj
users, asjj
operates in detached HEAD mode. - Fetching the user’s branch name may rarely be unreliable with the IntelliJ plugin, causing metrics reporting to be skipped. In this case you can use the CLI instead, and in the future users will be able to manually override the branch name in config.