Professional Documents
Culture Documents
http://forums.otterhub.org/viewtopic.php?f=60&t=5156
Advanced search Board index English Area Howtos Change font size FAQ Register Login
33 posts Page 1 of 1
Add the exact pending reminder time to AgentTicketZoom Edit Kernel/Language.pm around line 342: Code: Select all
my $ReturnString = $Self->{$Config} || "$Config needs to be translated!"; if ( $String =~ /\d\d\d\d\d\d\d\d\d\d/ ) { $String = $Self->{TimeObject}->SystemTime2TimeStamp( SystemTime => $String, ) }
What does it do? the pending time (until_time, or RealTillTimeNotUsed) is stored in unix epoch, not in a timestamp format. This is a "fix" to allow TimeLong to accept epoch numbers, by converting it to a time stamp for FormatTimeString to work. It's a nasty fix, because it assumes that all epoch numbers are (at least?) 10 digits. It is a bad thing (IMO) to consider using epoch time this close to 2038, though until it breaks, it does make for easy math calculations. Why do you need it? In line 356 of AgentTicketZoom.dtl: Code: Select all
<dtl if ($Data{"PendingUntil"} ne "") { $Data{"PendingUntilString"} = "<tr valign="top"><td><b>$Text{"Pending till"}:</b></td> <td>$Data{"PendingUntil"} $Data{"PendingTime"} $TimeLong{"$Data{"RealTillTimeNotUsed"}"})</td></tr>"; }>
See how $TimeLong is called on RealTillTimeNotUsed? if you don't make the Language.pm change, you'll simply get an epoch number. This puts a date/time after the "remaining time" so you get the best of both worlds. I also made a change to AgentTicketZoom.pm around line 352: Code: Select all
1 of 11
23-10-2012 11:18
OtterHub e.V. - OTRS Community View topic - Some changes to .dtl an...
http://forums.otterhub.org/viewtopic.php?f=60&t=5156
This merely adds the word OVERDUE, as in Pending Till: -30 days OVERDUE. OTRS 2.4 and 3.0 on Linux with MySQL database connected to an Active Directory for Agents and Customers. Please edit your signature to include your OTRS version, Operating System, and database type. Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so. Additional Help Master Post
crythias Moderator Posts: 4090 Joined: 04 May 2010, 18:38 Location: SouthWest Florida, USA Website Top
crythias Moderator Posts: 4090 Joined: 04 May 2010, 18:38 Location: SouthWest Florida, USA Website Top
2 of 11
23-10-2012 11:18
OtterHub e.V. - OTRS Community View topic - Some changes to .dtl an...
http://forums.otterhub.org/viewtopic.php?f=60&t=5156
You probably want a stats report. OTRS 2.4 and 3.0 on Linux with MySQL database connected to an Active Directory for Agents and Customers. Please edit your signature to include your OTRS version, Operating System, and database type. Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so. Additional Help Master Post
crythias Moderator Posts: 4090 Joined: 04 May 2010, 18:38 Location: SouthWest Florida, USA Website Top
3 of 11
23-10-2012 11:18
OtterHub e.V. - OTRS Community View topic - Some changes to .dtl an...
http://forums.otterhub.org/viewtopic.php?f=60&t=5156
Hi, I tryed to make the changes on AgentDashboardTicketGeneric.dtl , but I can't see any changes in the browser! I even erase this all block: <!-- dtl:block:ContentLargeTicketGenericRowMeta --> <td width="60%"> <div title="$QData{"Title"}">$QData{"Title","70"}</div> </td> <td>$QData{"Queue"}</td> <!-- add if you want to see the Queue --> <td>$QData{"CustomerID","15"}</td> <!-- add if you want to see the Company --> <td>$QData{"Owner"}</td> <!-- add this line for the owner--> <td>$QData{"Responsible"}</td> <!-- add this line for the responsible --> <td>$QData{"Time"}</td> </tr> And the appearence in the browser is the same! Ther's any kind off refresh to do? Thanks, Rui OTRS 3.0 on Windows Server with MySQL database for Agents and Customers rpmariano OTRS newbie Posts: 1 Joined: 23 Feb 2011, 17:50 Top
4 of 11
23-10-2012 11:18
OtterHub e.V. - OTRS Community View topic - Some changes to .dtl an...
http://forums.otterhub.org/viewtopic.php?f=60&t=5156
crythias Moderator Posts: 4090 Joined: 04 May 2010, 18:38 Location: SouthWest Florida, USA Website Top
Thanks a lot ! gambit23 OTRS newbie Posts: 3 Joined: 12 May 2011, 18:09 Top
crythias Moderator Posts: 4090 Joined: 04 May 2010, 18:38 Location: SouthWest Florida, USA Website
5 of 11
23-10-2012 11:18
OtterHub e.V. - OTRS Community View topic - Some changes to .dtl an...
http://forums.otterhub.org/viewtopic.php?f=60&t=5156
Top
That would be possible, but it would need (much) more extensions in the supporting code, because you also need to support the sorting in the back end. Probably future versions of OTRS will have this feature, we'll be looking into implementing the upcoming JQuery UI grid for this. It will have functionality for sorting, but also for dynamically adding columns, both for the administrator as on a per-user base. If anyone is interested in helping out implementing this, it'd be awesome! -Mike OTRS.com - @michielbeijen on Twitter Mike_B Moderator Posts: 246 Joined: 12 Jan 2010, 18:16 Top
crythias Moderator Posts: 4090 Joined: 04 May 2010, 18:38 Location: SouthWest Florida, USA Website Top
6 of 11
23-10-2012 11:18
OtterHub e.V. - OTRS Community View topic - Some changes to .dtl an...
http://forums.otterhub.org/viewtopic.php?f=60&t=5156
crythias Moderator Posts: 4090 Joined: 04 May 2010, 18:38 Location: SouthWest Florida, USA Website Top
And how to align the column headings to the center column and make the font bold? Best regards Yuri Kolesnikov OTRS 3.011, ITSM 3.05, SUSE 11, MySQL 5.xx OTRS 3.1.3, ITSM 3.1 yuri0001 OTRS ninja Posts: 418 Joined: 17 Mar 2011, 14:40 Location: Russia Top
I suggest looking up basic HTML at w3schools.com. This HowTo is not intended to teach HTML. If you want to ask this question in help, general, feel free. <b> is bold, for instance. OTRS 2.4 and 3.0 on Linux with MySQL database connected to an Active Directory for Agents and Customers. Please edit your signature to include your OTRS version, Operating System, and database type. Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so. Additional Help Master Post
crythias Moderator Posts: 4090 Joined: 04 May 2010, 18:38 Location: SouthWest Florida, USA Website Top
7 of 11
23-10-2012 11:18
OtterHub e.V. - OTRS Community View topic - Some changes to .dtl an...
http://forums.otterhub.org/viewtopic.php?f=60&t=5156
by gbecker 10 Jan 2012, 16:54 Hi, Is it possible to add information such as Customer "UserFirstname", etc on the Agent Dashboard? Where is this QData "function" defined? gbecker OTRS newbie Posts: 4 Joined: 30 Nov 2011, 23:10 Top
do you know if there is another method to cut the value for the customer ID ? (as described here for QData: http://doc.otrs.org/developer/2.0/en/html/c494.html)
Since my users are imported from an active directory, they get an ID like : mister.nice@company.com A really nice thing would be to cut at the value '@' without any character limit, so it would always display the full person name. e.g. 'mister.nice' Thanks and have a nice day OTRS 3.1.5 on Ubuntu 12.04 Database: MySQL Module: FAQ Romaing OTRS expert Posts: 60 Joined: 30 Mar 2012, 15:20 Top
Then grab alias or login, perhaps? OTRS 2.4 and 3.0 on Linux with MySQL database connected to an Active Directory for Agents and Customers. Please edit your signature to include your OTRS version, Operating System, and database type. Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so. Additional Help Master Post
crythias Moderator Posts: 4090 Joined: 04 May 2010, 18:38 Location: SouthWest Florida, USA Website Top
Actually i tried that already, that's why i asked. Tried just everything i could think of: (manner of speach) Login UserLogin Alias MemberUid
8 of 11
23-10-2012 11:18
OtterHub e.V. - OTRS Community View topic - Some changes to .dtl an...
http://forums.otterhub.org/viewtopic.php?f=60&t=5156
UID member Only one that works is CustomerID, all above just give an empty column. OTRS 3.1.5 on Ubuntu 12.04 Database: MySQL Module: FAQ Romaing OTRS expert Posts: 60 Joined: 30 Mar 2012, 15:20 Top
Did you happen to change Config.pm to grab the fields you tried? OTRS 2.4 and 3.0 on Linux with MySQL database connected to an Active Directory for Agents and Customers. Please edit your signature to include your OTRS version, Operating System, and database type. Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so. Additional Help Master Post
crythias Moderator Posts: 4090 Joined: 04 May 2010, 18:38 Location: SouthWest Florida, USA Website Top
<td>$QData{"CreatedByUser"}</td>
but it doesn`t work. Thanks OTRS 3.1.10 on CentOS 6 mojorianer OTRS newbie Posts: 22 Joined: 30 Nov 2010, 01:03 Location: Berlin, Germany Top
9 of 11
23-10-2012 11:18
OtterHub e.V. - OTRS Community View topic - Some changes to .dtl an...
http://forums.otterhub.org/viewtopic.php?f=60&t=5156
PriorityID Lock LockID Queue QueueID CustomerID CustomerUserID Owner OwnerID Type TypeID SLA SLAID Service ServiceID Responsible ResponsibleID Age Created CreateTimeUnix Changed ArchiveFlag TicketFreeKey1-16 TicketFreeText1-16 TicketFreeTime1-6
=> 123, => 'lock', => 123, => 'some queue', => 123, => 'customer_id_123', => 'customer_user_id_123', => 'some_owner_login', => 123, => 'some ticket type', => 123, => 'some sla', => 123, => 'some service', => 123, => 'some_responsible_login', => 123, => 3456, => '2010-10-27 20:15:00' => '1231414141', => '2010-10-27 20:15:15', => 'y',
# (time stampes of expected escalations) EscalationResponseTime EscalationUpdateTime EscalationSolutionTime EscalationDestinationIn EscalationDestinationTime EscalationDestinationDate EscalationTimeWorkingTime EscalationTime FirstResponseTimeEscalation FirstResponseTimeNotification (unix time stamp of response time escalation) (unix time stamp of update time escalation) (unix time stamp of solution time escalation) (escalation in e. g. 1h 4m) (date of escalation in unix time, e. g. 72193292) (date of escalation, e. g. "2009-02-14 18:00:00") (seconds of working/service time till escalation, e. g. "1800") (seconds total till escalation of nearest escalation time type - response, update or solution time, e. g. "3600") (if true, ticket is escalated) (if true, notify - x% of escalation has reached)
# (detail escalation info about first response, update and solution time)
FirstResponseTimeDestinationTime (date of escalation in unix time, e. g. 72193292) FirstResponseTimeDestinationDate (date of escalation, e. g. "2009-02-14 18:00:00") FirstResponseTimeWorkingTime FirstResponseTime UpdateTimeEscalation UpdateTimeNotification UpdateTimeDestinationTime UpdateTimeDestinationDate UpdateTimeWorkingTime UpdateTime SolutionTimeEscalation SolutionTimeNotification SolutionTimeDestinationTime SolutionTimeDestinationDate SolutionTimeWorkingTime SolutionTime ); (seconds of working/service time till escalation, e. g. "1800") (seconds total till escalation, e. g. "3600") (if true, ticket is escalated) (if true, notify - x% of escalation has reached) (date of escalation in unix time, e. g. 72193292) (date of escalation, e. g. "2009-02-14 18:00:00") (seconds of working/service time till escalation, e. g. "1800") (seconds total till escalation, e. g. "3600") (if true, ticket is escalated) (if true, notify - x% of escalation has reached) (date of escalation in unix time, e. g. 72193292) (date of escalation, e. g. "2009-02-14 18:00:00") (seconds of working/service time till escalation, e. g. "1800") (seconds total till escalation, e. g. "3600")
Since the *creator* of the ticket is captured in Article History, you may be unsuccessful in your quest. OTRS 2.4 and 3.0 on Linux with MySQL database connected to an Active Directory for Agents and Customers. Please edit your signature to include your OTRS version, Operating System, and database type. Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so. Additional Help Master Post
crythias Moderator Posts: 4090 Joined: 04 May 2010, 18:38 Location: SouthWest Florida, USA Website Top
10 of 11
23-10-2012 11:18
OtterHub e.V. - OTRS Community View topic - Some changes to .dtl an...
http://forums.otterhub.org/viewtopic.php?f=60&t=5156
Module: FAQ Romaing OTRS expert Posts: 60 Joined: 30 Mar 2012, 15:20 Top
Not without coding. What I posted above is all that you'll get. posting.php?mode=reply&f=60&t=5156#pr58480 OTRS 2.4 and 3.0 on Linux with MySQL database connected to an Active Directory for Agents and Customers. Please edit your signature to include your OTRS version, Operating System, and database type. Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so. Additional Help Master Post
crythias Moderator Posts: 4090 Joined: 04 May 2010, 18:38 Location: SouthWest Florida, USA Website Top Display posts from previous: Post a reply 33 posts Page 1 of 1 Return to Howtos Jump to: Sort by
Who is online
Users browsing this forum: No registered users and 1 guest Board index The team Delete all board cookies All times are UTC + 1 hour [ DST ] Powered by phpBB 2000, 2002, 2005, 2007 phpBB Group
11 of 11
23-10-2012 11:18