How can i write a global script?

Scenario : Client will create an issue through there portal and the erpnext user Whichever doctype they are on will receive a Popup notification that a issue has been created.

when a client creates an issue the erpnext user can receive a system notification . I want to grab that notification and show it in a pop up. How do I write a global script so that it is always listening to weather a issue is created or not.

Same:

1 Like