Ask not what osTicket community can do for you - ask what you can do for osTicket community

Go Back   osTicket Forums > osTicket 1.6.x > General Discussions

Reply
 
Thread Tools Search this Thread Display Modes
  #11  
Old 12-08-2009, 11:41 AM
masino_sinaga masino_sinaga is offline
Senior Member
 
Join Date: Apr 2009
Location: Bandung, Indonesia
Posts: 670
Send a message via Yahoo to masino_sinaga
Question

Have you found the solution regarding your needs? Let us know.

Sincerely,
Masino Sinaga
Reply With Quote
  #12  
Old 12-08-2009, 11:48 AM
durangod durangod is offline
Member
 
Join Date: Sep 2009
Posts: 75
Default

no sir, i have tried several things, tried sorting before it gets to the posting, tried putting the sql in two sep statements, tried tons of things just cant get it to work, it either bombs the page or the field display is messed up or the php blows up.. i can get the if to work but not the else for some reason...

its prob just like a ; or something that im missing....

can you help please my eyeballs are falling out and so is my hair.. and i would love to go test your other mod once i get this done.. help please
Reply With Quote
  #13  
Old 12-08-2009, 12:02 PM
masino_sinaga masino_sinaga is offline
Senior Member
 
Join Date: Apr 2009
Location: Bandung, Indonesia
Posts: 670
Send a message via Yahoo to masino_sinaga
Arrow

Okay then. I will try to help you tomorrow (actually I am going to go out of town tomorrow morning for some job from my office). I will try to provide some time by tomorrow noon or night.

Now it is too late at my country; almost 00:01 AM right now. Going to bed now. See you later.

Sincerely,
Masino Sinaga
Reply With Quote
  #14  
Old 12-08-2009, 10:17 PM
durangod durangod is offline
Member
 
Join Date: Sep 2009
Posts: 75
Default

thanks bud, ok here is what i need, on the merge mod you have this following section that we post at the bottom of our include/staff.viewticket.inc.php, i just need this section to screen if your admin you see all tickets in the system, if your not admin you only see your dept tickets thats all...

here is your code... appreciate it and have a great trip...

Code:
<?
             //Admin and Manager function - merge tickets.
            if( ($thisuser->isadmin() || $thisuser->isManager() ) &&  ($ticket->getStatus()!='closed') ) {  
                 ?>
            <div id="mergeticket" class="tabbertab"  align="left">
 
                <h2>Merge Ticket</h2>
                <p>
                    <form action="tickets.php?id=<?=$id?>#mergeticket" name="notes" method="post" enctype="multipart/form-data">
                        <input type="hidden" name="ticket_id" value="<?=$id?>">
                        <input type="hidden" name="a" value="mergeticket">
                        <input type="hidden" name="email" value="<?php echo $ticket->getEmail(); ?>">
                        <input type="hidden" name="status" value="<?php echo $ticket->getStatus(); ?>">
                           Merge this current ticket into ticket # <select id="keepticket" name="keepticket">
			   <?
			   $sql = 'SELECT ticket_id, concat(ticketid,": ",subject) AS label FROM '.TICKET_TABLE.' WHERE email='.
                                  '(SELECT email FROM ost_ticket WHERE ticket_id = '.$id.') AND status '.
                                  '= "open" AND ticket_id <> '.$id.' ORDER BY `created` DESC ';
			   $lookuptickets = db_query($sql);
                           while (list($ticket_id,$label) = db_fetch_row($lookuptickets)){
                           ?>                                    
                             <option value="<?=$ticket_id?>"><?=$label?></option>
                           <?
                           }?>
                           </select>
                           <div><input type="checkbox" value="1" name="notifycustomer" checked="true" />Send Email to Customer inform the Ticket Merging</div>
                           <div  style="margin-left: 50px; margin-top: 5px; margin-bottom: 10px;border: 0px;" align="left">
                              <input class="button" type='submit' value='Merge Ticket'/>
                              <input class="button" type='reset' value='Reset' />
                              <input class="button" type='button' value='Cancel' onClick="history.go(-1)" />
                           </div>
                        </p>
                    </form>
                </p>
            </div>
            <?}?>
Reply With Quote
  #15  
Old 12-09-2009, 06:32 AM
masino_sinaga masino_sinaga is offline
Senior Member
 
Join Date: Apr 2009
Location: Bandung, Indonesia
Posts: 670
Send a message via Yahoo to masino_sinaga
Lightbulb Solution

Just arrived at home.

Well, try this modification then:

Limiting Tickets Based on Current Department in Merge Ticket Selection of osTicket v1.6 RC5

Sincerely,
Masino Sinaga
Reply With Quote
  #16  
Old 12-09-2009, 08:54 AM
durangod durangod is offline
Member
 
Join Date: Sep 2009
Posts: 75
Default

nice job wow, no wonder i was not getting anywhere with my simple code, i forgot so many things to check....lol nice job works perfect... thank you and my brain thanks you..
Reply With Quote
  #17  
Old 02-01-2010, 10:35 AM
jrmckinn jrmckinn is offline
Junior Member
 
Join Date: Jan 2010
Posts: 1
Default

Great Mod! I'm running in to one issue. When I open the Merge Tab section, there are no tickets listed in the Drop Down? Any ideas? Thanks!
Reply With Quote
  #18  
Old 03-04-2010, 06:05 PM
shobazee shobazee is offline
Junior Member
 
Join Date: Mar 2010
Posts: 2
Default

In order to implement this we need to decide on what it means to "merge" several tickets. Where do the description, milestone, etc. of the merged ticket go? Are the comments interspersed in chronological order, or somehow separated based on the original ticket?
Volte: it sounds like you actually want to keep the tickets separate, but link them so that they are both closed at once and counted as 1 ticket. It seems like this would cause confusion since there are now 2 or more open tickets where comments can continue, so users following the issue must watch all the duplicate tickets. It'd be helpful if you could explain what shortcomings you see with closing tickets as duplicates that you could address by "merging" the tickets.
Reply With Quote
  #19  
Old 11-30-2010, 06:52 PM
jmurphy444 jmurphy444 is offline
Junior Member
 
Join Date: Nov 2010
Posts: 7
Default Merge tickets

Once you merge the tickets...from multiple senders...who gets the response...everyone or the master (first) sender?
Reply With Quote
  #20  
Old 05-08-2012, 11:44 PM
kavlito kavlito is offline
Junior Member
 
Join Date: Mar 2012
Posts: 12
Default Will not let Manager Merge Tickets - only Admin

Quote:
Originally Posted by masino_sinaga View Post
Thanks for your short feedback!

You can get the modification code now:
Add Merge Ticket Feature into osTicket v1.6 RC5

Sincerely,
Masino Sinaga
In your post above, in the linked page with the mod you state, "This feature can only be accessed by user with admin and manager level."

However, my Managers cannot see the Merge Tickets tab, only Admins. I tested the same ticket # signed in as Admin and Manager, and only Admin sees the Merge Tickets tab.

I reference this line:
Code:
if( ($thisuser->isadmin() || $thisuser->isManager() ) &&  ($ticket->getStatus()!='closed') ) {
in \include\staff\viewticket.inc.php.

This seems to be where the user is authenticated. If I understand this correctly, if thisuser is not admin, then check for Manager. In other words, if thisuser is admin or Manager, and ticket is not closed, then show Merge Ticket tab.

Since it is not working when Manager, I question how thisuser is determined to be Manager.

Is this authenticating from the Account Type or User Group (or something else)?

Thanks in advance.

Last edited by kavlito; 05-09-2012 at 10:27 AM.
Reply With Quote


Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 01:18 PM.