When a transition is caused by a trigger, webhooks listening for issue update are never called.
It was failing silently.
Had the same solution as https://community.atlassian.com/t5/Jira-Core-questions/Bug-report-Trigger-breaks-with-webhook/qaq-p/1143465#U1144960