Hi,
With the new issue view on JIRA Cloud, I need a way to refresh the content of my web fragment whenever a field is being updated (since there is no more page refresh). I can’t seem to be able to capture the update event on the New Issue View using webhook and AP.events. I’ve tried first to listen on the jira:issue_updated event, followed by a combination of webhook and firing of custom event but both did not seem to work.
Any help is appreciated. Thank you.
Webhook + emit custom event
"webhooks": [
{
"event": "jira:issue_updated",
"url": "issue-updated",
"filter": "project = SAMPLE"
}
]
<script>
$(document).ready(function () {
AP.events.emit('issueUpdatedEvent',[]);
});
</script>
On codes for web fragment
AP.events.on('jira:issue_updated', function() {
console.log("issue updated event fired");
});
AP.events.onPublic('jira:issue_updated', function() {
console.log("issue updated public event fired");
});
AP.events.on('issueUpdatedEvent', function() {
console.log("custom issue updated event fired");
});
Regards,
Jessie