Skip to content

Jira connects with OAuth 2.0 through Truto's Atlassian app or your own, or with an Atlassian API token.

Install the Jira integration

Install Jira from Available integrations in each environment you connect accounts from.

Use your own Jira OAuth app

Truto connects Jira accounts through its own OAuth app, so this step is optional. To show your own app on the consent screen instead:

  1. Create an OAuth 2.0 integration in the Atlassian developer console and add https://api.truto.one/connect/jira/callback as its redirect URL. If you use a redirect URL on your own domain, add that URL instead.
  2. Enter the app's Client ID and Client Secret on the installed Jira integration. See Overriding OAuth credentials.

By default, Truto asks Jira for these scopes. The Connect UI lists them under Permissions required, and you can change them when you override the OAuth credentials.

  • read:jira-work
  • manage:jira-project
  • manage:jira-configuration
  • read:jira-user
  • write:jira-work
  • manage:jira-webhook
  • manage:jira-data-provider
  • read:application-role:jira
  • offline_access

Enable the same scopes on your app. If your app allows fewer, change the list under Use your own OAuth settings → Scopes on the installed integration's Configuration tab to match.

Connect a Jira account

Info

The User Directory Activities API resource only works on Jira's Standard and Premium plans.

  1. In Integrated Accounts, click Connect Account. Click Connect Account
  2. Enter a Tenant ID (your customer's ID; Truto creates the tenant if it is new), or pick one under Existing tenant (optional). Check the Environment and the Region (where Truto places the account; Western North America by default). To open the link straight on Jira, pick it under Advanced settings → Integration (optional). Click Get connection link. Get connection link
  3. Click the open-in-new-tab button, or click Copy and send the link to your customer so they connect their own Jira account. The link works for 7 days, until an account is connected with it. Share connection link
  4. Click Get Started if it shows, then select Jira. Select Jira
  5. Choose how to connect:
    • OAuth 2.0: log in to your Jira account and allow access to Truto. If your Atlassian account can reach more than one site, pick the Jira site to connect. One integrated account connects one site; connect again for each other site.
    • API Key: enter your Jira Email Address, an API Token created at id.atlassian.com, and your Jira Domain: the host in your browser URL, without https:// or a path, for example acme.atlassian.net. Click Connect.
  6. Close the tab when you see Connection successful. The new account appears under Integrated Accounts. Click its Account ID to see its details and make API calls.

Receive webhooks

Jira can send issue, comment, attachment, project, version and user changes to Truto, which passes them on as unified record:* events. Truto doesn't check a signature on Jira webhooks, so there is no secret to set.

  1. Install the Ticketing Unified API in the environment. Truto turns Jira events into record:* events only through it; without it, events are dropped.
  2. Subscribe a Truto webhook to record:created, record:updated and record:deleted, or all. See Creating a webhook.
  3. Register https://api.truto.one/integrated-account-webhook/<integrated_account_id> with Jira:
    • A Jira administrator can add it under Settings → System → WebHooks, or through the Proxy API webhook-v1 resource.
    • An account connected with OAuth 2.0 can register it through the Proxy API webhooks resource. Jira accepts only issue, comment and version events this way, requires a JQL filter, and expires the webhook after 30 days unless you renew it with the resource's refresh method.
Jira event Truto event
jira:issue_created / _updated / _deleted record:created / updated / deleted on ticketing/tickets
comment_created / _updated / _deleted record:created / updated / deleted on ticketing/comments
attachment_created / _deleted record:created / deleted on ticketing/attachments
project_created, project_updated, project_restored_deleted, project_restored_archived record:created or record:updated on ticketing/collections
project_deleted, project_soft_deleted, project_archived record:deleted on ticketing/collections
jira:version_created, _updated, _moved, _released, _unreleased, _deleted record:created, updated or deleted on ticketing/collections
user_created / _updated / _deleted record:created / updated / deleted on ticketing/users

See Receiving vendor webhooks.