Skip to content
This repository has been archived by the owner on Nov 26, 2023. It is now read-only.

How to catch / emit an event? #19

Open
jessiechia opened this issue Mar 5, 2021 · 1 comment
Open

How to catch / emit an event? #19

jessiechia opened this issue Mar 5, 2021 · 1 comment

Comments

@jessiechia
Copy link

jessiechia commented Mar 5, 2021

Hello,

Wondering how an event should / can be emitted from the Controller. $client->getEmitter()? Thanks!

Regards,
Jessie

@jessiechia jessiechia changed the title Started getting a bunch of "AtlassianConnectCore\\Http\\Clients\\JWTClient->__construct(NULL)" errors How to emit an event? Mar 14, 2021
@jessiechia jessiechia changed the title How to emit an event? How to catch / emit an event? Mar 15, 2021
@jessiechia
Copy link
Author

I've been trying to catch the jira:issue_updated event from within but seem to be unable to. How should I go about? Thanks!

AP.events.onAny(function() {
console.log("onAny event");
});
AP.events.onAnyPublic(function() {
console.log("onAnyPublic event");
});

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant