Back in the days, when my position was called PHP Developer instead of Atlassian Consultant, we were testing Sentry to use it in our development projects. Even though my company used Jira, we've never made it to the integration between both systems. I've seen the integration app with Jira on the marketplace many times and I've always been wondering - what happened in the meantime and what's possible to do with Jira and Sentry now? Let's focus on the cloud versions, because for me the cloud is the future :-)!
Let's imagine a web development company, which supports existing solutions and also developing the new one. If something goes wrong and there's a problem with one of your sites, as a developer, who does the investigation of the problem, you usually have to connect to the server, navigate to the logs and try to find out, what's going on. Sometimes you even don't know about the problem on your site til the time your customer reports it.
Sentry can help you improve the situation - you can collect the errors from all your sites immediately after they happen, be informed about them and process them at one place. And what I would like to do especially - create Jira issues based on them.
Let's try it!
Navigate to https://sentry.io/signup/ and fill in the form and create your account. Easy peasy. Be aware that if you want to do the integration between Jira and Sentry, free plan is not enough. I started the trial for this test scenario.
After you log in to your Sentry account, in the left menu click on the Projects menu item and Create project.
Choose a platform and a project name (in my case PHP and my-php-project).
Immediately you are provided with instructions, what needs to be done to capture all the errors in the PHP application.
I've created sample PHP project with index.php and based on the provided information installed SDK using composer
composer require sentry/sdk
My index.php looks like this.
<?php
require 'vendor/autoload.php';
Sentry\init(['dsn' => 'https://my-dns-url' ]);
/*
*
* This is my script for testing Sentry
*
*/
try {
throw new Exception('this is my test exception');
} catch (\Throwable $exception) {
Sentry\captureException($exception);
}
After execution of this code the first error is created in Issues section in Sentry!
You can see a lots of information in the issue detail.
My goal is to send this Sentry error to Jira to be able to start work on the fix immediately.
Let's navigate to my organization settings -> Integrations.
Let's select Jira (not Jira Server). Now I'm instructed I need to install integration app to my cloud Jira. After the installation the configuration needs to finished in Sentry.
A lot of things can be configured, I just leave it as it is and go back directly to my Sentry issue.
There's a new section in the right panel called Linked Issues in the error detail.
You can either create a new issue in your Jira site or link to the existing one. Let's create a new one.
It is possible to fill in not only the system fields, but also various custom fields. After the issue is created, you can get directly to the Jira clicking on it's key.
There's Sentry section in the right panel, where you can get additional information and go back directly to the Sentry issue.
I've succeeded in what I wanted to achieve and created Jira issue based on the Sentry error easily. It looks like there's a plenty of possibilities, how to continue - create Jira issues automatically based on the situation (not just manually), synchronize statuses of issues in Jira and Sentry etc. It looks very promising and I would consider Sentry as an option for my company and further testing, if I have any company :-).
Hana Kučerová
Atlassian Consultant
BiQ Group
Prague, Czech Republic
501 accepted answers
1 comment