-
Suggestion
-
Resolution: Unresolved
-
None
-
None
Currently, when Jira serializes issue payloads for webhooks, it calculates the total number of comments visible to the user by iterating over all comments and performing a permission check on each one. This approach ensures the count is permission-aware, but it results in significant performance degradation for issues with many comments, especially in environments with complex permission schemes (such as nested groups or large user directories).
In many cases, webhook consumers do not require the total comment count, and the cost of calculating it can outweigh its utility. The current implementation can lead to slow webhook payload generation, increased database load, and potential timeouts in large Jira Data Center instances.
The suggestion is about removing total comment count from the JSON payload, and replacing it e.g. with a simple hasNext boolean property
- causes
-
JRASERVER-67865 Activity Stream is timing out when both comments and history entry number for an issue is too high
-
- Gathering Impact
-
- relates to
-
JRASERVER-79070 Webhook payloads generated for all webhooks cause performance issues
-
- Closed
-
-
JRASERVER-78911 Slow issue JSON generation (webhooks/REST API) in Jira Data Center when custom fields are overly scoped
-
- In Review
-