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

Custom ticket status

Hi There,

I recently set up osticket in a test environment.
Everything is working just fine and so far i am pretty happy with this program.
There is only one issues imho, and that is the ticket status option.
So far there are only 2 options, open and closed.

I was wondering if anyone has a mod, or knows how to mod, to add in extra statusses. For example: In progress, On Hold, Waiting for Input.

Hopefully someone is able to help.

Kind regards.

Comments

  • canoedf;42910 said:
    Maybe this will help?

    http://osticket.com/forums/showthread.php?t=15463

    Looks like the heavy lifting is already done for you.
    Alright, cool! Thanks.
    Gues i overlooked that one.
    I'll go check it out!
  • Not sure if i can bump that old thread, so ill just post my errors here.

    I followed the guide, and everything went smoothly. As you can see in this screenshot: http://i40.tinypic.com/2prihdi.jpg
    Now my only issue is, is that i can't seem to open the tickets anymore.
    When i try to open it the page becomes blank:
    http://i43.tinypic.com/2aengcx.jpg

    I have added my modded files in a zip file to this thread.

    Kind regards.
  • Alright, got it fixed.
    The mod was missing
    <?php
    } ?>
    At circa line 537 in ticket-view.inc.php.

    The mod is working great now!
  • hello!

    could you send the updated files?

    i'm not able to get it work!

    thanks
  • boblaiponge;43364 said:
    hello!

    could you send the updated files?

    i'm not able to get it work!

    thanks
    Hi,

    I don't know if you are using the files i've put up earlier in this thread, but i have other mods using those files aswell. Which means those files are edited for more mods.That might be the reason why it's not working for you.
  • i don't know what to do with this :
    brofessor;43055 said:
    Alright, got it fixed.
    The mod was missing
    <?php
    } ?>
    At circa line 537 in ticket-view.inc.php.

    The mod is working great now!
  • boblaiponge;43367 said:
    i don't know what to do with this :
    Alright, if you open http://www.tmib.net/mod-pending-autoclose-osticket-17st, you see the guide on how to install the mod.

    When you come to the point of "open include\staff\ticket-view.inc.php
    circa line 485 locate"; you will have to paste allot of text. But there appears to be something wrong with the layout of the post. It cuts the point i added as a solution in that post off. Therefore osticket will give you the error that a line was not closed properly (if you enable this option in main.inc.php; http://osticket.com/forums/project.php?issueid=177).

    If you look closely at the guide; you see a very small part is outside the quote area, and that part is:
    <?php
    } ?>

    Because of that, you will probably not copy it correctly into the file you're trying to edit.

    Below you will find the correct part that you need to fix your issue:

    <?php
    if($ticket->isClosed() || $thisstaff->canCloseTickets()) { ?>





    <?php
    $statusChecked=isset($info['reply_ticket_status'])?'checked="checked"':'';
    if($ticket->isOpen()) { ?>

    <?php
    } elseif($ticket->isPending()) { ?>

    <?php
    } ?>
    <?php
    $statusChecked=isset($info['reply_ticket_status'])?'checked="checked"':'';
    if($ticket->isClosed()) { ?>

    <?php
    } ?>


    <?php
    } ?>
    I hope this makes sense for you, and that this will solve your issues.


    EDIT:

    Apparantly pasting it here destroys the layout of the text, i suggest you copy it correctly from the guide, with the missing part.
  • If you use [code] tags, it will format it and highlight code for you.
  • brofessor, Thanks for pointing out the problem with the guide. I've correctly it on tmib.net. Thanks again!
  • anyone tried this for 1.8 yet ? 

    i can find everything in 1.8 exept this one 
    open \include\class.ticket.php

    circa line 1763 locate:

            $sql='SELECT count(open.ticket_id) as open, count(answered.ticket_id) as answered '
                .' ,count(overdue.ticket_id) as overdue, count(assigned.ticket_id) as assigned, count(closed.ticket_id) as closed '
                .' FROM '.TICKET_TABLE.' ticket '
                .' LEFT JOIN '.TICKET_TABLE.' open ON (open.ticket_id=ticket.ticket_id AND open.status=\'open\' 
    AND open.isanswered=0 '.((!($cfg->showAssignedTickets() || $staff->showAssignedTickets()))? ' AND 
    open.staff_id=0 ':'').') '
                .' LEFT JOIN '.TICKET_TABLE.' answered ON (answered.ticket_id=ticket.ticket_id AND 
    answered.status=\'open\' AND answered.isanswered=1) '
                .' LEFT JOIN '.TICKET_TABLE.' overdue ON (overdue.ticket_id=ticket.ticket_id AND 
    overdue.status=\'open\' AND overdue.isoverdue=1) '
                .' LEFT JOIN '.TICKET_TABLE.' assigned ON (assigned.ticket_id=ticket.ticket_id AND 
    assigned.status=\'open\' AND assigned.staff_id='.db_input($staff->getId()).')'
                .' LEFT JOIN '.TICKET_TABLE.' closed ON (closed.ticket_id=ticket.ticket_id AND closed.status=\'closed\' )'
                .' WHERE (ticket.staff_id='.db_input($staff->getId());
    every thing else i found and can change 
  • I am interested in this as well. The link above is dead so I would like to know how where I could get this kind of mod.

  • Hi, it's just what I'm looking for, but for version 1.10; Can I find this mod for this version?
    Regards.
Sign In or Register to comment.