Our addon listens to Jira issue updated webhook but also updates issues using REST. I wonder if there’s any way I can write a webhook definition to skip sending us issue updates when the update was done by our addon:
What I’m looking for is JQL that can be used in the descriptor:
webhooks": [
{
"event": "jira:issue_updated",
"url": "/webhooks/issues/updates",
"filter": "JQL that will filter out issues updated by the addon?"
},
]
Or any alternative way to achieve it (additional param for issue endpoint)?
I’m dropping those webhooks in the webhook handler already but it would be great not to trigger them at all - would decrease load on Jira and our servers as well.
Thanks Maciej, that’s a neat idea but it will not work in my case as the add-on is regularly updating issues, your solution would work for the first call but it will fail later as the property would be already set. I guess I could try to clear the property later (that doesn’t trigger issue updated) but that’s too complicated and could introduce races with updates done by users.