Hi everyone,
I’m working on a Jira Cloud Forge app where I listen to the IssueCreatedEvent. Right after receiving the event, I perform a JQL query using Atlassian’s REST API to find issues related to the newly created one.
However, the problem is that the JQL query sometimes returns no results immediately after the issue is created — as if the new issue isn’t yet searchable. If I introduce a small delay (2–3 seconds) before running the query, everything works correctly and the expected results are returned.
This leads me to believe that there is a short delay in the indexing process after the issue is created, and during that time, the issue is not yet available to JQL queries.
My questions:
Is this indexing delay expected behavior in Jira Cloud?
Is there any recommended approach or best practice to ensure that a newly created issue is indexed and searchable before performing a JQL query?
Are there any reliable workarounds other than using arbitrary time delays?
Any help or guidance would be greatly appreciated!
Thanks in advance!
1 Like