Highway Three Solutions

Using Github Actions for Jira Integrations

ShareShare on LinkedIn.Share on Facebook.Share on Twitter.Share via email.
October 23, 2020
<p> In 2015 Atlassian introduced the Developer tools Integration between bitbucket and Jira Software. This included Smart Commit. Atlassian has continued to integrate DevOps platforms like Jenkins, TravisCI and CircleCI into Jira Software. </p> <p> Smart commits provide developers the option to perform their Jira tasks right from the command line. Adding comments, logging time and transitioning issue without having to change tools. </p> <img data-attachment-id="1912" data-permalink="https://highwaythreesolutionsdotcom.wpcomstaging.com/2020/10/23/jira-integrations-with-github-actions/jira_cloud_smart_commits/" data-orig-file="https://i0.wp.com/highwaythreesolutionsdotcom.wpcomstaging.com/wp-content/uploads/2020/11/jira_cloud_smart_commits-e1605897145101.png?fit=928%2C440&amp;ssl=1" data-orig-size="928,440" data-comments-opened="0" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="jira_cloud_smart_commits" data-image-description="" data-medium-file="https://i0.wp.com/highwaythreesolutionsdotcom.wpcomstaging.com/wp-content/uploads/2020/11/jira_cloud_smart_commits-e1605897145101.png?fit=300%2C142&amp;ssl=1" data-large-file="https://i0.wp.com/highwaythreesolutionsdotcom.wpcomstaging.com/wp-content/uploads/2020/11/jira_cloud_smart_commits-e1605897145101.png?fit=928%2C440&amp;ssl=1" loading="lazy" src="https://i0.wp.com/highwaythreesolutionsdotcom.wpcomstaging.com/wp-content/uploads/2020/11/jira_cloud_smart_commits-e1605897145101.png?resize=928%2C440&amp;ssl=1" alt="" width="928" height="440" class="aligncenter screenshot size-full wp-image-1912" srcset="https://i0.wp.com/highwaythreesolutionsdotcom.wpcomstaging.com/wp-content/uploads/2020/11/jira_cloud_smart_commits-e1605897145101.png?w=928&amp;ssl=1 928w, https://i0.wp.com/highwaythreesolutionsdotcom.wpcomstaging.com/wp-content/uploads/2020/11/jira_cloud_smart_commits-e1605897145101.png?resize=300%2C142&amp;ssl=1 300w, https://i0.wp.com/highwaythreesolutionsdotcom.wpcomstaging.com/wp-content/uploads/2020/11/jira_cloud_smart_commits-e1605897145101.png?resize=768%2C364&amp;ssl=1 768w" sizes="(max-width: 928px) 100vw, 928px" data-recalc-dims="1"> <p>There are many online tutorials that guiding people through smart commit integrations, how to use them and how to set them up. Depending on your version of Jira and what version control system you want to integrate with (e.g., Github, Gitlab, Bitbucket) you will likely need a plugin (add-on) from the Atlassian Marketplace. Atlassian has some really nice documentation if you would like more details, <a class="h3-inline-link" target="_blank" href="https://support.atlassian.com/bitbucket-cloud/docs/use-smart-commits/" rel="noopener noreferrer">https://support.atlassian.com/bitbucket-cloud/docs/use-smart-commits/</a>. </p> <p> Beyond smart commits the Developer Tools also has the ability to display deployment and build information. Jira extended the developer tools section in the issue view to accomodate the additional artifacts. </p> <img src="https://i2.wp.com/highwaythreesolutionsdotcom.wpcomstaging.com/wp-content/uploads/2020/11/deployment_info_developer_tools.png?ssl=1" alt="" class="aligncenter screenshot wp-image-1902" data-recalc-dims="1"> <p> The developer tool interface is used to view and perform repository actions. You can create branches, view commits and merges, even see build / deployment statuses. The connection of code to an issues gives insight into the development lifecycle for a specific ticket, helping to break down the barriers to communication. </p> <p> When you have to move fast, knowing that a feature or bug fix (issue) has passed a build step, or a deployment has been done, is key. Jira integrates with Bitbucket really well; which is to be expected, being produced by the same company. But what about Github, one of the most popular version control systems. </p> <p> When it comes to Github and its integrations with Jira, there are many options. Github and other third-party vendors have created Jira Marketplace application that connects Github repository data to Jira Softwares’ developer tools for both Jira cloud and server. </p> <p>In our research, focusing on Jira Cloud, we found that none of these applications will cover all the functionality native to the Jira – Bitbucket integration. Github has published a free app (<em>Github for Jira</em>) that will cover the smart commit, but lacks features for surfacing Github workflow build and deployment information. There are many other Jira Applications to integrate Github data with Jira, <em>Git Integration for Jira</em> and <em>Dev Info for Jira</em>. These cover all the native features between Jira and Bitbucket; but, at a cost. </p> <p> Github actions are well suited to surface the Github build and deployment information in Jira. When Github registers an event (pull, push, merge, deploy, build) we can use a Github action to push data into the corresponding Jira issue. </p> <p> We have created a pair of actions that push build and deployment information from Github (Github workflows) into Jira, filling the feature gab and at no cost to you. </p> <img data-attachment-id="1967" data-permalink="https://highwaythreesolutionsdotcom.wpcomstaging.com/2020/10/23/jira-integrations-with-github-actions/screen-shot-2020-11-20-at-12-09-38-pm/" data-orig-file="https://i2.wp.com/highwaythreesolutionsdotcom.wpcomstaging.com/wp-content/uploads/2020/10/Screen-Shot-2020-11-20-at-12.09.38-PM.png?fit=1146%2C1045&amp;ssl=1" data-orig-size="1146,1045" data-comments-opened="0" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="Screen Shot 2020-11-20 at 12.09.38 PM" data-image-description="" data-medium-file="https://i2.wp.com/highwaythreesolutionsdotcom.wpcomstaging.com/wp-content/uploads/2020/10/Screen-Shot-2020-11-20-at-12.09.38-PM.png?fit=300%2C274&amp;ssl=1" data-large-file="https://i2.wp.com/highwaythreesolutionsdotcom.wpcomstaging.com/wp-content/uploads/2020/10/Screen-Shot-2020-11-20-at-12.09.38-PM.png?fit=1024%2C934&amp;ssl=1" loading="lazy" width="1146" height="1045" src="https://i2.wp.com/highwaythreesolutionsdotcom.wpcomstaging.com/wp-content/uploads/2020/10/Screen-Shot-2020-11-20-at-12.09.38-PM.png?resize=1146%2C1045&amp;ssl=1" alt="" class="screenshot alignnone wp-image-1967" srcset="https://i2.wp.com/highwaythreesolutionsdotcom.wpcomstaging.com/wp-content/uploads/2020/10/Screen-Shot-2020-11-20-at-12.09.38-PM.png?w=1146&amp;ssl=1 1146w, https://i2.wp.com/highwaythreesolutionsdotcom.wpcomstaging.com/wp-content/uploads/2020/10/Screen-Shot-2020-11-20-at-12.09.38-PM.png?resize=300%2C274&amp;ssl=1 300w, https://i2.wp.com/highwaythreesolutionsdotcom.wpcomstaging.com/wp-content/uploads/2020/10/Screen-Shot-2020-11-20-at-12.09.38-PM.png?resize=1024%2C934&amp;ssl=1 1024w, https://i2.wp.com/highwaythreesolutionsdotcom.wpcomstaging.com/wp-content/uploads/2020/10/Screen-Shot-2020-11-20-at-12.09.38-PM.png?resize=768%2C700&amp;ssl=1 768w" sizes="(max-width: 1000px) 100vw, 1000px" data-recalc-dims="1"> <p> If you or your organization are looking to fill this feature gap our actions are published as pre-release in the Github Marketplace under <em><a class="h3-inline-link" target="_blank" href="https://github.com/marketplace/actions/jira-upload-build-info" rel="noopener">Jira Upload Build Info</a></em> and <em><a class="h3-inline-link" target="_blank" href="https://github.com/marketplace/actions/jira-upload-deployment-info" rel="noopener">Jira Upload Deployment Info</a></em>. </p> <p>To leverage the full power of Jira’s Developer Tools while hosting your repository in Github, you have to put in some work. Whether you prefer the Github community, its look and feel, or you are an entrenched entity in its ecosystem; you can still get all there is out of Jira. </p> <a class="ctabutton" href="/contact"> Contact Us </a> <h3>References:</h3> <ul> <li> <a class="h3-inline-link" target="_blank" href="https://github.com/marketplace/actions/jira-upload-deployment-info" rel="noopener">Jira Upload Deployment Info</a> </li> <li> <a class="h3-inline-link" target="_blank" href="https://github.com/marketplace/actions/jira-upload-build-info" rel="noopener">Jira Upload Build Info</a> </li> <li> <a class="h3-inline-link" target="_blank" href="https://support.atlassian.com/bitbucket-cloud/docs/use-smart-commits/" rel="noopener noreferrer">Atlassian Smart Commit Docs</a> </li> </ul>