Jump to content

Hook - Create a ticket for all clients when Network Event is added


Recommended Posts

Dear Team,

Does anyone know how to create a HOOK script which will create a support ticket for all clients when a Network issue is added?

Simplistically, we want everyone to automatically get an email (via support ticket) when we scheduled maintenance.  We know we need to use the below hook, but how do we create a ticket for all clients once added?

<?php
add_hook('NetworkIssueAdd', 1, function($vars) {
    // Perform hook code here...
});

Thanks,
Brad

Link to comment
Share on other sites

Foreach clients (probably not everyone but just the ones affected by the issue) run this.

I suggest you to add a prefix in ticket title (eg. Server blue offline [#526]) where 526 is the ID of the network issue. This way when the problem has been solved you can automatically close all related tickets.

Edited by Kian
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated