Sync Jira time logs to Harvest by ID

Recipe ToolsProductivitySales Enablement

What it does

When someone triggers this automation, it retrieves work logs from Jira by ID and searches for matching records in Harvest. It syncs the time log data between systems so both stay current.

Who it's for

Operations teams who need Jira time logs reflected in Harvest without manual entry.

How teams use this

Keep Harvest current from Jira

Sync work logs from Jira to Harvest each time an entry is logged so both systems reflect the same hours. The team works in Jira and Harvest stays in sync without manual updates.

Prevent duplicate time logs

Check if a time log already exists in Harvest before creating a new one. This stops the same work from being logged twice across systems.

Add project mapping rules

Set additional Jira-to-Harvest project mappings in the lookup table so teams across departments can sync their work logs. Only work logs with a valid project match will sync.

Alert on sync failures

Include an email notification when a work log cannot be synced due to a missing project mapping. This helps the team spot gaps in the lookup table and fix them.

How it works

  1. Start the sync by ID. A real-time event starts this automation to sync work logs from Jira to Harvest using the provided list of IDs.
  2. Retrieve work logs from Jira. Get the work logs from Jira using the list of IDs, then repeat the next steps for each work log returned.
  3. Get the issue custom field. Fetch the issue custom field detail from Jira to map the work log to the correct Harvest project.
  4. Match Jira project to Harvest. Search the lookup table for a matching Harvest project ID. If no match is found, stop the job for that work log.
  5. Sync or create the time log. Search Harvest for an existing time log record. If found and the harvest_time_log_id is present, sync the data. If not found, create a new time log in Harvest.