Just wondering if is possible to reload the tickets section automatically or make them available as they are created by end users or others techs/users. All of that without having to completely refresh the page manually.

So far I used

<meta https-equiv="refresh" content=60; URL=website"

but by doing the above while is doing the job i wanted I came across another issue.

when creating a new ticket it will (as the meta tag was told to do) also refresh losing the info that was filled.

does anyone have a better solution?

maybe to just reload the specific ticket frame or open the "new ticket" button on a separate page?

thanks in advance

think is what you need is a function refresh div tickets, which will just refresh the content rather than have the entire page re-loading.

i`m using it in some parts of my systems

<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>

<script>

    // Function to update the div content

    function updateContent() {

        // Generate new content

        const newContent = \`<p>Tickets fetched at ${new Date().toLocaleTimeString()}</p>\`;

        // Update the div with the new content

        $('#contentDiv').html(newContent);

    }

    // Call the updateContent function every 60 seconds

    setInterval(updateContent, 60000); // 60000 milliseconds = 60 seconds

    // Optionally, call the function once immediately to load initial content

    $(document).ready(function() {

        updateContent();

    });

</script>


<div id="contentDiv">

    tickets section here

</div>

feel free and give it a try

    3 months later

    aftechro

    johnny

    Would it be possible to include this in future updates?
    I had <meta https-equiv="refresh" content=60; URL=website" working for some time but seems that after updates it refreshes with the new file.
    i was not able to replicate @aftechro code while I'm sure it works i just couldn't make it work on my end. My knowledge is limited in the coding area.

    Thank you all

    5 days later

    Is it possible to have a notification for ticket updates with a refresh button?

    On the client side I can't see a response either unless I refresh the page. It would be great if it worked like chat while logged in.

      17 days later

      someDude

      Just wanted to share maybe is useful for someone

      is just a simple refresh button

      insert the following code in the tickets.php file. Right after <div class='card-tools'>

      CODE:

      <button type="button" class="btn btn-secondary ml-2" onclick="location.reload();">

      <i class="fas fa-sync-alt mr-2"></i>Refresh

      </button>

        wrongecho

        It is!!…. also just F5 will do the trick but in my case its helpful for a receptionist. but again, it really is just simple button that might help someone.
        I'm still trying to figure out so that it will do auto refresh but I'm still learning how to code.

        Bigbug

        can you expand on it?

        my none coding brain says "public relations" but I'm sure might be something else. Ill do some newbie research on my end tho.

          opensourcefollower A pull request (PR) on GitHub is a proposal to merge changes from one branch into another branch. It's a way for developers to collaborate and review code changes before they're merged into the main codebase.

          Thanks to @wrongecho we now have the ability to create custom php scripts

          you or someone could create one that just shows open tickets and refreshes continuously

          customer script must go into the /xcustom directory

          4 months later

          Hi guys, bringing this post back again as in a way has been solved by Kanban mode, but just wondering if new tickets will automatically show up or we have to refresh to see new tickets.

          maybe aftechro script can be included in the code ?

          Thank you all

          hey @opensourcefollower that was long time ago when i used that. since, itflow improved a lot and have different code procedures and the way the functions are implemented. Best to nicely ask the great webdevs of ITFlow to have this feature request implemented down the line if they dont have this on their list already.

          Atm, i`m not using the ticketing module, therefore, i was not focused on getting this updated.