Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions backend/plugins/jira/tasks/issue_collector.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,12 @@ func CollectIssues(taskCtx plugin.SubTaskContext) errors.Error {
}
err = json.Unmarshal(blob, &data)
if err != nil {
// By default surface the error so it's visible. Set JIRA_SKIP_UNPARSEABLE_ISSUES=true
// to skip unparseable pages instead of failing the collection.
if taskCtx.GetConfigReader().GetBool("JIRA_SKIP_UNPARSEABLE_ISSUES") {
logger.Warn(err, "skipping unparseable Jira issue page")
return nil, nil
}
return nil, errors.Convert(err)
}
return data.Issues, nil
Expand Down
Loading