# Secondary flow webhooks

**URL:** <https://community.developer.atlassian.com/t/secondary-flow-webhooks/67868>\
**Category:** Jira Cloud\
**Tags:** performance, webhook, jira-cloud\
**Created:** [March 27, 2023, 9:05am UTC](https://community.developer.atlassian.com/t/secondary-flow-webhooks/67868 "2023-03-27T09:05:32Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![jbevan](https://sea1.discourse-cdn.com/atlassiandeveloper/user_avatar/community.developer.atlassian.com/jbevan/32/44430_2.png) [@jbevan](https://community.developer.atlassian.com/u/jbevan)\
**Post date:** [March 27, 2023, 9:05am UTC](https://community.developer.atlassian.com/t/secondary-flow-webhooks/67868/1 "2023-03-27T09:05:32Z")

</div>

Hello,  
I want to validate under which conditions a comment\_deleted event would be sent with a secondary flow header. Is it only when the parent issue is deleted?

Additionally, can you expand on the “etc” in

> All `Secondary` webhooks are a result of long-lasting bulk or cascade operation (bulk issue update, project deletion, issue deletion etc.)

from the [docs](https://developer.atlassian.com/cloud/jira/platform/webhooks/#reliability-and-performance)?

---

<div class="post-metadata">

**Author:** ![dmorrow](https://sea1.discourse-cdn.com/atlassiandeveloper/user_avatar/community.developer.atlassian.com/dmorrow/32/35895_2.png) [@dmorrow](https://community.developer.atlassian.com/u/dmorrow)\
**Post date:** [March 27, 2023, 12:41pm UTC](https://community.developer.atlassian.com/t/secondary-flow-webhooks/67868/3 "2023-03-27T12:41:58Z")

</div>

Hi @jbevan ,

My interpretation of the documentation is that the `comment_deleted` event would have a `Primary` `X-Atlassian-Webhook-Flow` header only if that comment was directly deleted, but a `Secondary` flow header if some other operation resulted in the deletion of that comment. Based on this, two other operations that would result in the `comment_deleted` event firing with a `Secondary` flow header are project deletion and parent comment deletion. The “etc” in the docs refers to entity events that imply other entity events (e.g. the deletion of a project implies the deletion of all issues in that project).

EDIT 29-Mar-23: Jira doesn’t have comment threads so “parent comment deletion” doesn’t make sense.

Your request has been forwarded to a Jira webhooks expert to check this.

Regards,  
Dugald

---

<div class="post-metadata">

**Author:** ![TomaszKanafa](https://sea1.discourse-cdn.com/atlassiandeveloper/user_avatar/community.developer.atlassian.com/tomaszkanafa/32/41909_2.png) [@TomaszKanafa](https://community.developer.atlassian.com/u/TomaszKanafa)\
**Post date:** [March 28, 2023, 12:13pm UTC](https://community.developer.atlassian.com/t/secondary-flow-webhooks/67868/4 "2023-03-28T12:13:17Z")

</div>

> [@dmorrow](#):
>
> X-Atlassian-Webhook-Flow

Hello!  
I think currently the comment\_deleted event will be sent when deleting issue/project.  
Cheers!

---

<div class="post-metadata">

**Author:** ![jbevan](https://sea1.discourse-cdn.com/atlassiandeveloper/user_avatar/community.developer.atlassian.com/jbevan/32/44430_2.png) [@jbevan](https://community.developer.atlassian.com/u/jbevan)\
**Post date:** [March 28, 2023, 1:14pm UTC](https://community.developer.atlassian.com/t/secondary-flow-webhooks/67868/5 "2023-03-28T13:14:28Z")

</div>

> The “etc” in the docs refers to entity events that imply other entity events (e.g. the deletion of a project implies the deletion of all issues in that project).

Is there any chance Atlassian could document these in case we’re unaware of something? My lack of knowledge of _all of_ Jira Cloud has caught me out a few times.

---

<div class="post-metadata">

**Author:** ![dmorrow](https://sea1.discourse-cdn.com/atlassiandeveloper/user_avatar/community.developer.atlassian.com/dmorrow/32/35895_2.png) [@dmorrow](https://community.developer.atlassian.com/u/dmorrow)\
**Post date:** [March 29, 2023, 4:42am UTC](https://community.developer.atlassian.com/t/secondary-flow-webhooks/67868/6 "2023-03-29T04:42:05Z")

</div>

@TomaszKanafa ,

> I think currently the comment\_deleted event will be sent when deleting issue/project.

I agree and tested this to be the case when a project is deleted. In that case, the flow header was `"x-atlassian-webhook-flow": "Secondary"`.

@jbevan ,

> Is there any chance Atlassian could document these

I clicked the “Rate this page” stars which opened up a simple dialog allowing me to provide feedback. This is the feedback I entered:

> On this page, there is text as follows:
> 
> “bulk issue update, project deletion, issue deletion etc.”
> 
> It is suggested that “etc” be replaced with the remaining types of events that can cause cascading events or that the general rules be explained such that developers can deduce what these events are.

This feedback feature is available to everyone, but it unfortunately doesn’t return a reference to an issue that can be tracked.

Regards,  
Dugald
