Quick overview
This workflow runs nightly to pull time entries from Airtable, converts Jira issue keys to issue IDs, logs the time to Tempo via its REST API, archives the processed entries back to Airtable, and sends a confirmation message to a Slack user.
How it works
- Runs on a schedule.
- Fetches all records from the Airtable “Daily Worklog” table.
- Looks up each entry’s Jira issue by Issue Key to retrieve the issue ID.
- Builds a Tempo worklog payload (authorAccountId, issueId, start date/time, description, and time spent calculated from start/end times).
- Sends each worklog to the Tempo to create the worklog entry.
- Archives each submitted entry into the Airtable “Worklog History” table and deletes the original record from “Daily Worklog”.
- Aggregates the processed records and sends a direct message in Slack confirming the upload.
Setup
- Connect Airtable credentials and update the base ID and table IDs for “Daily Worklog” and “Worklog History” to match your Airtable setup.
- Connect Jira Software Cloud credentials with access to the projects/issues referenced by the Airtable Issue Key field.
- Connect an HTTP Bearer credential using your Tempo API token, and replace
YOUR_TEMPO_AUTHOR_ID in the code with your Tempo user (author) account ID.
- Connect Slack credentials and set the target recipient (user ID) for the confirmation message.