- Overview
- How it works
- Viewing errors
- Loop protection
- Resolving errors
- Automatic notifications
- Throttling
- Next steps
Overview
The Error Monitor automatically tracks and groups script errors from triggers, helping you identify and fix recurring problems.
How it works
When a saved script fails while running from a trigger (scheduled, event, UIM, scripted field, async event, automation, Rovo, workflow rules, web trigger, JQL function), the error is recorded in the Error Monitor. Manual runs from the Console and sandbox runs are not recorded. Failed Jira expressions of workflow conditions are recorded too.
Errors are grouped so that the same error occurring across many issues appears as a single entry with a count, rather than flooding you with duplicates:
- If the error has a line number, errors of the same script at the same line form one group
- Otherwise the error message is normalized - issue keys, UUIDs, numeric IDs in REST paths,
(line N)references andstatus NNNcodes are replaced with placeholders - and errors with the same normalized message form one group - A group belongs to one version of the script source: after the source changes, a new error starts a new entry
- If an active entry of the group already exists, its occurrence count is incremented; otherwise a new entry is created
Viewing errors
Open the Health tab in the Console to see all active errors. The tab title shows the number of active errors.
Each error row shows:
| Field | Description |
|---|---|
| Script | The script that produced the error (“(deleted script)” if it no longer exists) |
| Error | The original error message |
| Count | How many times this error has been recorded |
| Trigger | Which trigger caused the error |
| Last seen | When the error most recently occurred |
| Category | Shown as a badge when the error is a known kind of failure - currently Loop protection |
Expand a row to see the details: the error line (if available), First seen and Last seen dates, the linked Jira issue (if error notifications created one), the First input data the failing run received, and the Open Script, Resolve and Resolve All actions.
Filtering: Filter errors by trigger type or category to narrow the list.
Loop protection
Scripts run with limits on call depth, loop iterations, script includes and async event chains (see Limits). When a script recurses endlessly or loops without an exit condition, the engine stops it - and the resulting error is tagged with the Loop protection category, so it reads apart from an ordinary scripting bug.
Where it shows up:
- Error Monitor - a “Loop protection” badge on the row, and a category filter that shows only these errors
- Admin Panel - a “Loop protection triggered” warning banner appears when the protection has fired in the last 24 hours, with the number of affected script errors and a Review in console link into the filtered Error Monitor. No firings means no banner.
- Forge App Logs - each recorded firing writes a
[MONITOR] kind=loop_guard ...line for external monitoring. It carries only identifiers (script id, error entry id), the trigger type and counters - never the error message, issue keys, account ids or script source.
Throttling applies here too: repeat firings of the same error inside the 60-second window produce neither a new record nor a new log line.
A firing usually means one of:
- a function that calls itself without a base case
- two scripts that include each other
- a
whileloop whose condition never becomes false - a script that re-queues its own async event on every run
Resolving errors
The Error Monitor lists only active errors. Resolving an error removes its entry from the list:
- Resolve - remove one error entry
- Resolve All - remove all error entries of the script
- Saving the script with different source code removes its error entries automatically
If the error happens again after it was resolved, a new entry is created with a count of 1.
Automatic notifications
When a Service Project is configured with Enable error notifications on:
- New errors create a Jira issue in the service project with full error details, script link, trigger context and the first input data
- Repeated errors add milestone comments to the existing issue at 5, 10, 50, 100, 500, and 1,000 occurrences
- Daily limit - at most 100 issues per day (UTC) are created for error and drift notifications together
Notifications can be filtered by trigger type in the service project configuration; manual runs are excluded by default.
Throttling
To prevent database overload from high-frequency errors (e.g., a scripted field failing on every issue update), error recording is throttled. If the same error was recorded less than 60 seconds ago, the new occurrence is not counted.
Next steps
- Service Project Integration - Configure error notifications
- Triggers - Trigger types that can produce errors
- Administration - Global trigger controls
- Issue Panel - Script runs recorded on a Jira issue
