Table of contents
Connect Jira to GitHub and create a GitHub issue viewer with Elements Connect and ScriptRunner.
Sometimes, the rendering of a Connect field needs more space than is offered in the "Details" panel where custom fields are rendered. In this scenario, Jira is used to manage a project with an open source component. With the "GitHub issue picker" field combined with a scripted "GitHub issue panel", a project manager can follow a GitHub open sourced development without leaving Jira, displaying all sorts of information from a remote issue in a single place.
In this example, we display the content of a GitHub issue
First, create a GitHub Rest ressource
Download the field configuration: GitHub_Issue_export.json
From Elements Connect administration, create an Elements Connect field of type Live Text
Click on the field name to configure it and select the third option: "Import an external configuration"
Select "Import an external configuration"
- Select the "GitHub Issue" datasource created previously
- Click the "Save" button to store your new configuration.
- Define the screens on which your new Connect field should be accessible. You can do so via the Connect administration
Add your field to the issue creation screen, but not to the issue view.
- That's it! The field is now configured. You can adapt the query ("URL Path") to your needs.
Your field is now properly configured
- From the "Manage apps" section, select "Fragments" in the ScriptRunner menu
- Create Script Fragment
- Select "Show a web panel"
We won't go through the detail of the item configuration, only the specific parts:
- Select a "Location" available in the issue view - we selected "atl.jira.view.issue.left.context"
- The most important part, the script.
Do not forget to change the custom field ID, in this example it's 10000. You're not limited to one field, you can render as many field displays as you want.
The result in your Jira ticket