- Documentation
- Integrations
- Apps
- Rollbar integration
Rollbar integration
Report exceptions and deploys, triage items, and react instantly to new, reactivated or resolved Rollbar items on behalf of your clients.
What it does
The Rollbar integration lets you send occurrences into a client's Rollbar project, look up and triage items, read occurrences and item history, record and finish deploys, and pull the project's most active errors for a daily digest. Its triggers fire in real time when Rollbar sees a new item, reactivates or resolves one, a person reopens one, an item crosses an occurrence milestone, an error occurs, or a deploy is reported.
Connect a Rollbar account
- Open your workspace in TaskJuice and navigate to Connections.
- Choose Rollbar and click Connect.
- In a new tab, sign in to rollbar.com and open the client project you want to integrate.
- Open Project Settings, then Access Tokens, and create a token with the
readandwritescopes. Paste it as the Read and write token. - To report errors or deploys, create a second token with only the
post_server_itemscope and paste it as the Post server item token. Rollbar does not allowpost_server_itemon the same token asreadorwrite. - Save the connection.
Each scope backs a specific part of the integration:
| Token | Scopes | Needed for |
|---|---|---|
| Read and write | read | every lookup and list action |
| Read and write | write | Update Item Status, and the webhook rules TaskJuice manages for your triggers |
| Post server item | post_server_item | Track Occurrence, Report Deploy and Update Deploy |
To rotate or revoke a token later, return to the project's Access Tokens screen, regenerate it, and update the TaskJuice connection. Use a separate token per client project so revocation stays scoped.
Triggers
| Trigger | Fires when |
|---|---|
rollbar/new-item | Rollbar sees a new distinct error or message for the first time |
rollbar/reactivated-item | a resolved item occurs again and Rollbar reactivates it |
rollbar/item-resolved | an item is marked Resolved |
rollbar/item-reopened | a person marks a resolved item Active again |
rollbar/item-occurrence-milestone | an item reaches its 10th, 100th, 1,000th (and so on) occurrence |
rollbar/new-occurrence | any error or message occurs (high volume, see below) |
rollbar/new-deploy | a deploy is reported to the project |
Every trigger has an optional Environment filter. Pick one (for example production) to ignore events from other environments, or leave it empty to receive them all.
Turn on the project's webhook once. Rollbar sends nothing to any webhook rule while the project's webhook notifications are off, and they are off on a new project. Open a Rollbar trigger in the editor, pick the connection for that project, and copy the callback URL the console step shows for it, then in Rollbar go to Project Settings, Notifications, Webhook, and turn the webhook on with that URL. Each connection (one Rollbar project) has its own URL, and events sent to it start only the workflows that use that connection. If the webhook is already on with another URL, leave it as it is.
You do not create the rules yourself. When you publish a workflow, TaskJuice adds a webhook notification rule for that event to the project through the Rollbar API, pointed at your own delivery address. Your project's existing notification rules and its default webhook URL are left untouched. Removing the Rollbar connection deletes the rules TaskJuice added.
New Occurrence fires once for every error your application reports. On a busy project that is a run per error, so prefer New Item or Item Occurrence Milestone unless you really need every event.
Rollbar does not sign webhook requests. What protects your workflow is the delivery address itself: it is unguessable and unique to your workspace. Treat trigger data as unattested and re-read anything security-relevant with Get Item before acting on it.
Actions
Items
rollbar/track-occurrencereports an error or message to the project, with environment, level, code version, custom data and an optional person.rollbar/list-itemspages through items, filtered by status, level, environment, framework and assignee.rollbar/get-itemfetches one item by its ID.rollbar/find-itemfinds an item by its project counter (the number in the item's Rollbar URL) or by an occurrence UUID.rollbar/update-item-statusresolves, mutes, archives or reactivates an item, changes its level or assignee, and records the version that resolved it.rollbar/list-item-eventsreads an item's history: comments and status, level, assignment and title changes.
Occurrences
rollbar/list-item-occurrenceslists one item's occurrences, newest first.rollbar/list-occurrenceslists the latest occurrences across the whole project.rollbar/get-occurrencefetches one occurrence with its full stack trace, request and person data.
Deploys
rollbar/report-deployrecords a deploy against an environment and revision.rollbar/update-deployfinishes a deploy that was reported as started, marking it succeeded, failed or timed out.rollbar/get-deployfetches one deploy by ID.rollbar/list-deployspages through recent deploys.
Reports
rollbar/get-top-active-itemsreturns the most active items over the last few hours with hourly counts, ready for a daily digest.
Known limitations
- A project access token reaches one Rollbar project. Connect each client project separately.
- If a published trigger never fires, check that the project's webhook notifications are still on in Rollbar (Project Settings, Notifications, Webhook). The rules TaskJuice adds carry their own delivery address, so any URL works there.
- The high occurrence rate event is not offered as a trigger, because Rollbar requires a per-rule rate threshold for it. Use Item Occurrence Milestone, or Get Top Active Items on a schedule.
- Project, team, user and access-token administration need an account access token and are not part of this integration.
- Rollbar may retry a delivery that takes longer than three seconds to acknowledge, so a workflow can occasionally run twice for one event.
- Update Deploy only works while the deploy is still
started; Rollbar refuses later changes with a conflict error.