TerraTrue’s Jira integration makes it easy to create new launches from Jira issues. We’ll walk you through a few steps to create the integration. We’ll also discuss how to specify which Jira issues create launches and how to import existing Jira launches. Finally, we’ll provide detailed information about how you can automate custom questionnaires using Jira custom fields.

Jira integration setup

Step 1: Create an API token

To access your Jira instance, TerraTrue needs a way to authenticate with your system using an API token. It’s important to note:

  • The Jira permissions granted by an API token will be the same as those of the account associated with the API token
  • API tokens exist until they are revoked (deleted)
  • API tokens are independent of a user’s login password, so revoking the token will not affect the Jira user’s login

To create an API token:

Step 2: Enable the Jira Integration in Org Settings

  • Log in to TerraTrue
  • Navigate to Org Settings > Integrations > Jira or go to https://launch.terratrue.com/settings/integrations/jira
  • Click the “Enable Jira Integration” toggle under the “Webhook Configuration” header
  • Fill out the required fields as follows:
    • Jira Instance URL: https://<your_Jira_instance>.atlassian.net
    • Username: <Jira account username from step 1>
    • API Token: <API token from step 1>

Step 3: Configure optional settings

Launch Flexibility

When the Jira Integration is enabled, by default, only launches created by Jira are allowed. If you would still like to create TerraTrue launches in other ways, turn on the “Launch Flexibility” toggle.

Once enabled, you will have two options. If you would like to allow TerraTrue users to create launches without any restrictions, then choose “All launches” and click Save.

If you would like to limit the types of launches that can be created outside of Jira, select the “Launches with components” option. If selected, users will only be able to create launches outside of Jira when they are associated with a particular component. Simply specify the list of valid components and click Save.

Comment Settings

By default, TerraTrue sends a label to the original Jira issue when a launch is completed. You can also configure TerraTrue to send comments to the original Jira issue when specific events, like completing a Data Spec, occur. To configure these optional comments, select the events you wish to track and then click Save.

Note: The creator of these optional comments will be the username specified in the Jira Integration.

Custom Fields

You can pre-populate answers in custom questionnaires using Jira custom fields. For more information, review our detailed Jira integration guide.

Step 4: Define a webhook in Jira

  • From the TerraTrue Jira Integration page, copy the URL in the Webhook section
  • In Jira, navigate to Settings > System > Webhooks or go to https://<your_Jira_instance>.atlassian.net/plugins/servlet/webhooks
  • Click “+ Create a WebHook”
  • Fill out the name field and select enabled for status
  • For the URL, paste in the webhook URL from TerraTrue
  • In the Issue Related Events section, specify the Jira project or criteria for filtering in the JQL query box
  • Under the Issues header, selected “created” and “updated”
  • Save your new webhook

Customizing the Jira webhook

When configuring a webhook in the Issue Related Events section in Jira, we are given the ability to use JQL to determine which Jira issues will trigger the webhook. JQL is Jira’s search query language. Any search you would normally do in Jira can be directly copied into the Issue Related Events section of the webhook. This includes searches on multiple projects, field values, or any creative search strategy. You can find more information on JQL here.

Bulk importing Jira issues

Once you’ve configured the Jira Integration, newly created Jira issues will automatically create TerraTrue launches. If you would like to import existing Jira issues into TerraTrue, you can bulk import them through TerraTrue’s org settings.

  1. First, navigate to the Import Data setting and select Jira Integration.

 2. Select the Jira project with the launches you would like to import and click Next.

3. Select the issues you would like to import, or use the checkbox at the top of the table to select all issues, and click Next.

4. You’ll now see a screen showing the status of the import.

5. Once imported, you can check the LaunchPad for your newly imported launches. Imported launches are automatically marked as complete and the Jira issue title, description, and due date are copied to the new launch. If a due date is not provided, then the due date is set three weeks from the creation date.

Automating custom questionnaires with Jira custom fields

When creating a launch from Jira, you have the option of storing the Jira issue’s custom fields and using them to pre-populate answers to custom questionnaires. This can save time and reduce the need for developers to switch between Jira and TerraTrue.

Today, TerraTrue only supports textfield, number, and date custom fields. Complex custom fields, like radio buttons, are not yet supported.

Step 1: Enable the optional Custom Fields setting

To get started, enabled the Custom Fields setting in TerraTrue’s Jira integration page.

Step 2: Select the custom fields you want to import

After enabling the Custom Fields setting, you’ll see a list of the available Jira custom fields. Each field you select will be sent to TerraTrue and can be used in custom questionnaires associated with a launch. Select the fields you want to be monitored and click save.

Step 3: Configure custom questionnaires

Head over to the Custom Questionnaires setting and click the custom questionnaire you would like to pre-populate. Find a question you would like to pre-populate and choose “Launch” and then “Custom Field” in the Prepopulation section.

Then select the Jira custom field you would like to pre-populate the question. Please note that only one custom field can be selected per question.

Step 4: Publish your changes

When you’re finished setting up your pre-population options, click Publish. Now this questionnaire will have its answers automatically completed based on the information entered in Jira custom fields.

Using the Jira Integration

Creating a launch using Jira

Before creating a launch using Jira, an admin in your org must configure the Jira integration. Part of the configuration process involves picking criteria that will automatically create TerraTrue launches when you open a Jira issue that satisfies those criteria.

The title, description, and due date of the TerraTrue launch will be automatically completed based on the Jira issue. If you don’t specify a due date, we’ll automatically set one three weeks from the date the launch was created.

Syncing launch status with Jira

When a review is marked complete in TerraTrue, we’ll automatically add a “TERRATRUE_COMPLETE” label to the Jira issue associated with the launch.

Security Considerations

As we’ve discussed, the Jira Integration is a bidirectional communication between Jira and TerraTrue. As a result, we ask you to provide a Jira username and API token so that we can authenticate with your Jira instance. TerraTrue will have access as that Jira user, so you may want to limit the Jira permissions provided to that Jira user to only those that are necessary.