Skip to content

Using Spira with GitHub

GitHub's issue tracker is a simple and lightweight tool used to track problems with an associated git repository.

You can use this integration to sync new incidents, new comments, statuses, and releases (milestones) bidirectionally with SpiraTest, SpiraTeam or SpiraPlan (SpiraPlan from here on).

Set up data synchronization

STOP! Please make sure you have first read the instructions to set up the data sync before proceeding!

Configuring the Integration Service

This section outlines how to set up the integration service between GitHub and SpiraPlan. It assumes that you already have a working installation of SpiraPlan and a GitHub repository with an issue tracker. To setup the service, you must be logged into SpiraPlan as a user with System-Administrator level privileges.

Inside SpiraPlan, go to the Administration page and navigate to Integration > Data Synchronization. Check if you see a plug-in called GitHubDataSync, as shown below:

What do if the plug-in is not there

If you don't see the plug-in in the list, click the ""Add" button at the top of the page. This opens the generic Data Sync plug-in details page. This is not yet customized to help you more easily set up the data sync. We recommend, adding just enough information now to create the plug-in. Then edit the plug-in after its made to complete the process.

To start, fill in the following fields:

  • Name: enter "GitHubDataSync" exactly
  • Connection Info: enter the name of the GitHub account (see "GitHub Account" below)
  • Login: enter your GitHub username

Now click "Add" to save the plug-in and return you to the list of plug-ins. Now follow the instructions below.

With the plug-in place, click on its "edit" button to open its detailed settings page.

You need to fill out the following fields for the GitHub Data Sync plugin to work properly:

  • Name: This needs to be set to GitHubDataSync
  • Caption: This is the display name of the plug-in, generally something generic like "GitHub" would work, but you should change it if you will be syncing with multiple GitHub projects.
  • Description: The description of what you're using the plug-in for. This field is entirely optional and is not used by the system in any way.
  • GitHub Account: The location of your GitHub account, removing the actual repository name. For example, if you have a repository such as, you would simply enter "octocat" as the connection info. We will enter the repository name later when we setup the project mappings.
  • GitHub login: Your GitHub username
  • GitHub PAT: A GitHub personal access token with the "public_repo" permission. You can create a new one at
  • Time Offset: This should be set to 0, but if you find that changes are not being synced, try increasing the value to tell the plugin to offset timestamps
  • Auto-Map Users: Set to Yes to map users one-to-one by checking first & last names. Set to no if you would like to map users manually. Please note that duplicate names in the external system will be ignored.
  • On-Premise URL: For on-premise GitHub Enterprise installations only, please enter the name of your server (e.g. http://myserver), if left blank, the data synchronization will assume you are using the cloud URL for GitHub (

Click the "Save" button.

NOTE: Leave any field called "(Not Used)" blank.

Configuring Project Mappings

For this step, please ensure that you are in the SpiraPlan project you would like to sync with GitHub. For this example, the project is called "GitHub Data Sync."

Click on the "View Project Mappings" button for GitHub Data Sync. You need to fill out the following fields to sync correctly:

  • External Key -- The name of your GitHub repository. In the example above, where the URL in GitLab was, you would simply enter "Hello-World" for this setting.

  • Active -- Set this to yes so that the Data Sync plug-in knows to synchronize with this project.

Now click the "Status" button within the "Incident" section to map the Incident statuses together. The purpose of this is so that the GitHub Data Sync plug-in knows what the equivalent status is in GitHub for an incident status in SpiraPlan.

You must map every status in the system. Descriptions of the field are below:

  • External Key -- Either open or closed, which are the only two statuses in GitHub

  • Primary -- You must have exactly one primary key for open and one for closed. This is what status the plug-in should set the incident in SpiraPlan to when the status in GitHub changes.

Click "Save" and assuming everything was done correctly, the plug-in should work. Start your Data Sync service and verify that issues in GitHub appear inside SpiraPlan. Note that the Data Sync service is not running constantly, so it may take some time for changes to materialize.

Congratulations, you have just integrated your Spira instance with GitHub's integrated issue tracker!