Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion

osTicket v1.10 (stable) and Maintenance Release v1.9.15 are now available! Go get it now

User to close ticket

Hi,

Is there really no option for the user to close the ticket that they created?. If none, it is possible to include this on the future releases?.
Thanks.

osticket v.1.10

Comments

  • The open feature request for this lets me think so:
  • @ mfelber, 

    Thanks for the link but I think the plugin is not applicable to us right now.
    What we really need is the ability of User to close his own ticket when its done. 

  • Haven't tried this myself but you can try this
    Add code: 
    <?php if ($ticket->isCloseable()
            // Only ticket owners can close this ticket
            && $thisclient->getId() == $ticket->getUserId()) { ?>
                    <a class="action-button" href="tickets.php?a=close&id=<?php
                         echo $ticket->getId(); ?>"><i class="icon-flag"></i> <?php echo __('Close'); ?></a>
    <?php } ?>


    Add code:
        case 'close':
            if(!$ticket->checkUserAccess($thisclient)) //double check perm again!
                $errors['err']=__('Access Denied. Possibly invalid ticket ID');
            if(!$errors) {
                $ticket->setState('closed');
            } elseif(!$errors['err']) {
                $errors['err'] = __('Correct any errors below and try again.');
            }
            break;

  • Hi Micke1101,

    Thanks for the code.
    I tried to add it, the close button is added but nothing happens when I tried to click it.
Sign In or Register to comment.