Condition failed because one or more issues failed to index in time
Problem
Automation for JIRA showing "Condition failed because one or more issues failed to index in time" error when:-
- Automation contains JQL search like below (without- Refetch issue data)
- Issue 1 (Task Issue Type) had transited to Closed and Archived
- Issue 2 (Task Issue Type) with In Progress had a Sub-Task Issue 2
- Sub-Task Issue 2 transited to Closed triggered the automation to scan through entire instance using JQL query
- Due to JIRA reindexing slowness issue, it triggers errors for Issue 1 Archived ticket
- To replicate the issue again, we need to restore Issue 1 ticket and re-archive it
- Then trigger another round automation by transit issue 2 subtask to done status
The following appears in the Automation for JIRA Audit Logs
Condition failed because one or more issues failed to index in time
Cause
JIRA couldn't finish reindexing on time before automation rules run or slow indexing.
Resolution
Include Re-fetch issue data before the JQL query run just like showing in the example screenshot.