BambooHR to JSM Assets

BambooHR to JSM Assets

Import BambooHR Data into JSM Assets with OnLink

Use OnLink to import employee data from BambooHR into Jira Service Management (JSM) Assets and keep Assets records updated from a BambooHR company report.

Overview

This guide explains how to configure an OnLink import from BambooHR to JSM Assets. You will connect OnLink to BambooHR, create an Assets import configuration, define field mappings, configure the BambooHR report ID, test the import, and validate the results in JSM Assets.

Prerequisites

  • OnLink is installed and available in Jira from Manage your apps.

  • You have access to the target JSM Assets schema and object type.

  • You have access to BambooHR and the BambooHR report that contains the employee fields you want to import.

  • The BambooHR report is a Company Report, not a report owned only by an individual user.

  • The OnLink BambooHR connection has permissions to read the report data.

Connect OnLink to BambooHR

  1. In Jira, go to Manage your apps.

  2. Open OnLink.

  3. Go to Connections.

  4. Create or verify the connection to BambooHR. Use this documentation to connect to BambooHR BambooHR API

  5. Confirm the connection is active before creating the Assets import configuration.

Set up the Assets import configuration

First, create the base Assets import configuration. Review the setup guide: Assets import configuration.

After the base configuration is created, open OnLink from Manage your apps and configure the BambooHR source and field-level mappings.

Configure the BambooHR importer

Use the following procedure to configure the importer.

  1. Enter a descriptive name for the mapping.

  2. Set Source system to BambooHR.

  3. Confirm the Asset Schema. OnLink pre-fills this value from the JSM Assets schema where you started the configuration.

  4. Select the target Object Type within the schema.

  5. Select the schedule frequency for automated production runs.

  6. Add the attribute mappings. Use the mapping examples below as a starting point.

  7. Add the BambooHR report configuration parameter: config:bamboohr_report_id=<your report id>.

Mapping examples

Employee mapping

Use this mapping to import BambooHR employee records into a JSM Assets employee or user object type.

key:employeeNumber=WorkerID map:email=User map:firstName=First Name map:lastName=Last Name config:bamboohr_report_id=99

Mapping reference

Use the following reference to understand each mapping entry.

Mapping item

Purpose

Notes

Mapping item

Purpose

Notes

key:employeeNumber=WorkerID

Uses the BambooHR employeeNumber value as the unique key for the Assets object.

Required. This lets OnLink update existing records instead of creating duplicates. The target Assets attribute is WorkerID.

map:email=User

Maps the BambooHR employee email address to a JSM Assets attribute named User.

User can be an Assets attribute of type User. OnLink uses the email address to match the Atlassian user.

map:firstName=First Name

Maps the BambooHR firstName field to the Assets attribute First Name.

The Assets attribute name must match the value after the equals sign.

map:lastName=Last Name

Maps the BambooHR lastName field to the Assets attribute Last Name.

The Assets attribute name must match the value after the equals sign.

config:bamboohr_report_id=<your report id>

Sets the BambooHR custom report ID used by OnLink to retrieve employee data.

The report must be a Company Report. OnLink uses the BambooHR report API: https://documentation.bamboohr.com/reference/getbyreportid.

Use additional BambooHR fields

Any field returned by the BambooHR report API can be used in the mapping. Add the field to the BambooHR company report first, then map it to the matching JSM Assets attribute.

Use this format:

map:<bamboohr_field_name>=<Assets attribute name>

For example:

map:jobTitle=Job Title map:department=Department map:location=Location

Test and validate the import

OnLink processes data in two separate steps: Get Data and Import Data.

  1. Click Get Data to pull records from BambooHR into OnLink staging.

  2. Open the job logs and wait for the message: No more pending records. Data will be imported on next Import run.

  3. Click Import Data to create or update objects in JSM Assets.

  4. Review the target object type in JSM Assets and confirm that employee objects, attributes, and user references were imported as expected.

Production runs are fully automated based on the schedule selected in the importer configuration.

image-20240318-045922.png

Troubleshooting

Issue

What to check

Issue

What to check

No records are returned during Get Data.

Confirm the BambooHR connection is active, the report ID is correct, and the report is a Company Report.

Records are created as duplicates.

Confirm the key: mapping uses a stable unique value such as employeeNumber.

User attributes are not populated.

Confirm the BambooHR email field contains the same email address used by the Atlassian account, and confirm the target Assets attribute is type User.

A mapped field is blank in Assets.

Confirm the field is included in the BambooHR company report and that the source field name in the mapping matches the API response field name.