BugSnag: Update Error
bugsnag_update_errorChange an error's status in BugSnag using operations like fix, ignore, snooze, or link issue.
Instructions
Update the status of an error
Toolset: Errors
Parameters:
projectId (string): Unique identifier of the project. This is optional if a current project is set and is used to set the current project for BugSnag tools.
errorId (string) required: Unique identifier of the error
operation (enum) required: The operation to apply to the error
issue_url (string): The URL of the issue to link to the error - required when operation is 'link_issue'
reopenRules (object): Reopen rules for snooze operation - required when operation is 'snooze'
Use Cases: 1. Mark an error as open, fixed or ignored 2. Discard or un-discard an error 3. Update the severity of an error 4. Snooze an error with defined conditions for when it should be reopened
Examples:
Mark an error as fixed
{
"errorId": "6863e2af8c857c0a5023b411",
"operation": "fix"
}Expected Output: Success response indicating the error was marked as fixed
Snooze an error for 1 hour
{
"errorId": "6863e2af8c857c0a5023b411",
"operation": "snooze",
"reopenRules": {
"reopenIf": "occurs_after",
"seconds": 3600
}
}Expected Output: Success response indicating the error was snoozed for 1 hour
Snooze an error until 5 additional users are affected
{
"errorId": "6863e2af8c857c0a5023b411",
"operation": "snooze",
"reopenRules": {
"reopenIf": "n_additional_users",
"additionalUsers": 5
}
}Expected Output: Success response indicating the error was snoozed until 5 additional users are affected
Snooze an error until 10 occurrences in 24 hours
{
"errorId": "6863e2af8c857c0a5023b411",
"operation": "snooze",
"reopenRules": {
"reopenIf": "n_occurrences_in_m_hours",
"occurrences": 10,
"hours": 24
}
}Expected Output: Success response indicating the error was snoozed until 10 occurrences in 24 hours
Link a Jira issue to an error
{
"errorId": "6863e2af8c857c0a5023b411",
"operation": "link_issue",
"issue_url": "https://smartbear.atlassian.net/browse/PIPE-9547"
}Expected Output: Success response indicating the Jira issue was linked to the error
Unlink a Jira issue from an error
{
"errorId": "6863e2af8c857c0a5023b411",
"operation": "unlink_issue"
}Expected Output: Success response indicating the Jira issue was unlinked from the error
Hints: 1. Only use valid operations - BugSnag may reject invalid values 2. When using 'snooze' operation, reopenRules parameter is required 3. When using 'link_issue' operation, issue_url parameter is required 4. Use 'unlink_issue' to remove the link between an error and its issue 5. For 'occurs_after' reopen rules, specify 'seconds' parameter 6. For 'n_additional_users' reopen rules, specify 'additionalUsers' parameter (max 100,000) 7. For 'n_occurrences_in_m_hours' reopen rules, specify both 'occurrences' and 'hours' parameters 8. For 'n_additional_occurrences' reopen rules, specify 'additionalOccurrences' parameter 9. Snoozing temporarily silences an error until the specified reopen condition is met
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| errorId | Yes | Unique identifier of the error | |
| issue_url | No | The URL of the issue to link to the error - required when operation is 'link_issue' | |
| operation | Yes | The operation to apply to the error | |
| projectId | No | Unique identifier of the project. This is optional if a current project is set and is used to set the current project for BugSnag tools. | |
| reopenRules | No | Reopen rules for snooze operation - required when operation is 'snooze' |