Tempo Integration Assisted Setup

Assisted Setup

Open Assisted Setup using the search bar. Locate Set up Tempo Integration and launch it by clicking on its name. The setup wizard will then appear. Select Next to continue.

assisted-setup-1.PNG

Default Values and Resource Creation

In the next two steps, you need to set the default values that the system will automatically fill in when the Project Journals are created, and whether you want to automatically create new resources when the worklogs are downloaded to Business Central.

image-20240820-160408.png

We recommend that you set up your Project Journal Template only once, for example to a template named Project, and not further change it during use of the integration.

If a worklog with this template has already been downloaded to the project journals and then posted, it will no longer be possible to change this value.

If a worklog has only been downloaded and not posted, it is still possible to delete the worklog and change the template in the settings.

Resource Default Unit of Measure should always be set to Hour, as the integration is configured to work with hourly rates only.

The value for Resource Default Gen. Product Posting Group can be set to any posting group according to your system needs, e.g. Resource.

Authentication Methods

There are two main authentication methods supported by Jira.

Basic authentication, which is easier to set up, but needs to be renewed every three months. We recommend this method if you are just starting out with our integration and want to check its general functionality and make some test API calls.

Since the Basic method will become deprecated in the near future, we recommend using the OAuth 2.0 bearer token method for day-to-day operations in the production environment. This method is more secure, a slightly more complicated to setup, but the token validity is automatically renewed on a regular basis without you having to think about it.

Tempo, on the other hand, only supports the OAuth 2.0 method.

Based on the options above, we came up with two ways you can authenticate yourself, User Consent Authentication, which corresponds to the OAuth 2.0 authentication method in both Jira and Tempo. If you decide to use this method, please leave both toggle buttons from the screenshot above turned on.

Our second authentication option is called Token Insertion Authentication and is equivalent to Basic authentication in Jira and the OAuth 2.0 method in Tempo. If you decide to use this authentication type, please uncheck both toggle buttons in the screenshot above.

Both authentication options are described in detail in the sections below. For the sake of this documentation, the available authentication methods are described in pairs, but you can combine them according to your needs. Just make sure that all required credentials are filled in when switching from one method to another. When switching from Token Insertion Authentication to User Consent Authentication, also make sure to use both Authorize Tempo and Authorize Jira functions.

User Consent Authentication (OAuth 2.0)

If you chose this type authentication method, leave both toggle buttons on the third page of the wizard turned on.

Redirect URI

The Redirect URI specifies the address to which Jira and Tempo will redirect the browser during the authentication process. The format of the address always consists of your Business Central URL, including your tenant ID and environment name, with /OAuthLanding.htm added at the end.

Jira and Tempo Credentials

In this step, you need to fill in your Jira and Tempo credentials.

The Jira Base URL is the URL of your company in Jira, e.g. https://my-company-jira-url.atlassian.net/.

Your Jira Client ID and Jira Client Secret can be obtained from your Jira developer profile at https://developer.atlassian.com/ .

Go to the developer console and create a new application.

When creating the new app using the Create button in the upper-right corner of the screen, you need to give it a name and specify the OAuth 2.0 integration type.

 

When you open the app, it brings up a page with a few menu options. In the Overview section, you don't need to configure anything. In the Distribution section, just set the application as private by selecting the Not sharing option.

 

 

 

 

 

 

In the Permissions section, select the Jira API option and for the Jira Platform REST API, check the View Jira issue data and View user profiles permissions using the Edit Scopes button in the upper right of the screen.

 

In the Authorization section, you need to enter the Callback URL that corresponds to the Redirect URI that you configured in the previous step of the wizard.

In the Settings section, you will find the information you need to complete your Jira Connection setup, your Jira Client ID and Jira Client Secret.

To obtain the Tempo Client ID and Tempo Client Secret, go to your Tempo settings, click Oauth 2.0 Applications in the Data Access section of the left side menu, and create a new application by clicking the button in the upper right corner of the page.

In the next step, a short form will appear where you need to enter the name of the application, the redirect URI address that you already configured in the previous steps of the wizard, and set the Client Type value to Confidential.

In the next step, you’ll get the credentials you need. Now you can copy them to the wizard in the Business Central.

Tempo Account field

In this step, you need to get the ID of the Tempo Account field associated with your Jira projects. To get this value, click on the three dots on the line below and the field number will fill itself in.

After you have filled in the Tempo account ID, you can test the connection using our automated tests in the next wizard section API Keys and Permissions Tests.

Token Insertion Authentication (Basic and OAuth 2.0)

If you chose this type authentication method, leave both toggle buttons on the third page of the wizard turned off.

With the Token Insertion Authentication, your setup screen will look like this:

Jira and Tempo Credentials

You can now proceed to set up your connection to Jira.

The Jira Base URL is the URL of your company in Jira, e.g. https://my-company-jira-url.atlassian.net/.

The Jira API Email is the email of the Jira user account through which the integration will be established. If you're not sure what level of permissions your Jira user should have, please see our general recommendations at the beginning of the main Tempo Integration documentation.

To obtain the Jira API Key, go to your Jira environment and look for the Atlassian account settings, accessible through the gear in the upper right corner of the main horizontal menu.

Once you're in the account settings, look for the Security tab in the horizontal menu at the top of the page, then look for API tokens. Create new token using the Create API token button.

 

In the next step, you will be prompted to enter and confirm the token name. On the following screen, you will be given your Jira API Key, which you can copy to the wizard in Business Central.

 

After the Jira Connection is set, you can proceed to the Tempo Connection section.

To generate your Tempo Access Token, go to the Tempo settings, click API Integration in the Data Access section of the left side menu, and create a new token by clicking the button in the upper right corner of the page. In the form that appears, enter the name of your token.

The expiration period can be typically set to 30, 90, or 365 days.

Next, select Custom Access from the access options. In the permission options that appear below, check all the View permissions and leave the Manage permissions unchecked since the integration won't be editing any data. Once your permissions are set, confirm your selection.

Once your settings are confirmed, you will receive your Tempo Access Token, which you can copy to the wizard in Business Central.

Tempo Account field

The Tempo Account field ID associated with Jira projects can be obtained in the same way as for user consent authentication. For detailed instructions, see the relevant section of the documentation.

After you have filled in the Tempo account ID, you can test the connection using our automated tests in the next section, API Keys and Permissions Tests.

API Keys and Permissions Tests

In this section, you will be asked to enter a key for one of your existing Jira projects and a key for one of the Tempo accounts you use to log time on tasks within that project. Then use the Test API Keys action in the bottom right corner.

The tests allow you to verify that the integration can access the project and Tempo account you entered and download the information it needs. At the same time you can see if your Jira user has enough permissions for the integration to work correctly.

If the tests are successful, the corresponding line will be filled with a green OK. In case of an error, you will be provided with the details of the given API call.

The tests are the same for both authentications types.

Job Queue Setup

As your worklogs will be automatically downloaded through a job queue entry, in this part of the wizard you can predefine the date until which the previous month's period will remain open, so you can adjust the period length according to your company needs.

Using the example in the screenshot below, the worklogs for the previous month can be downloaded until the 5th day of the current month, but if the system downloads the worklogs after that date, only the current month records will be downloaded to your Business Central.

In the next step, you will be asked to create a job queue entry to automatically download your worklogs from Tempo. When you click the Create Job Queue action in the bottom right corner, the system creates a new job queue entry for you, and all you need to do is set the status of the entry to Ready.

If for some reason there is already a job queue in the system (for example, if you are switching authentication methods), the system will notify you.

Here's an example of the job queue that our integration will create for you. It's a standard Business Central job queue entry. If you want to know more details about it, please refer to the corresponding section of the main documentation.