Hello folks !
I’ve just created an app from scratch with forge create and selected Custom UI as template.
In the initial code supplied, I can see there a subscription for an event :
const subscribeForIssueChangedEvent = () =>
events.on('JIRA_ISSUE_CHANGED', () => {
fetchLabels().then((labels) => {
setLabels(labels);
}).catch((error) => {
console.log("Failed to fetch labels : ", error)
});
});
Who does the emit of the JIRA_ISSUE_CHANGED ?
Are there any default events triggered by forge that we can use in our apps ?
Looked through the code supplied after the app creation, could not find any reference like :
events.emit("JIRA_ISSUE_CHANGED")
Is this magic ? I don’t think so
Wondering who is sending this event and if so, are there any documentation to check available default events ?
Thanks a lot !