Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
intranet-helpdesk
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
project-open
intranet-helpdesk
Commits
1fbaf8e5
Commit
1fbaf8e5
authored
Jun 07, 2019
by
Frank Bergmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Fixed issue appearing if t.ticket_creation_date is null
parent
1e1f0ff5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
ticket-timeline.tcl
lib/ticket-timeline.tcl
+5
-5
No files found.
lib/ticket-timeline.tcl
View file @
1fbaf8e5
...
...
@@ -25,11 +25,11 @@ set org_ticket_id $ticket_id
# Get everything about the ticket
db_1row ticket_info
{
select *,
trunc
(
extract
(
epoch from
(
now
()
- t.ticket_creation_date
))
/6
0
)
as ticket_creation_minutes,
trunc
(
extract
(
epoch from
(
t.ticket_reaction_date - t.ticket_creation_date
))
/6
0
)
as ticket_reaction_minutes,
trunc
(
extract
(
epoch from
(
t.ticket_confirmation_date - t.ticket_creation_date
))
/6
0
)
as ticket_confirmation_minutes,
trunc
(
extract
(
epoch from
(
t.ticket_done_date - t.ticket_creation_date
))
/6
0
)
as ticket_done_minutes,
trunc
(
extract
(
epoch from
(
t.ticket_signoff_date - t.ticket_creation_date
))
/6
0
)
as ticket_signoff_minutes
coalesce
(
trunc
(
extract
(
epoch from
(
now
()
- t.ticket_creation_date
))
/60.0
)
, 0.
0
)
as ticket_creation_minutes,
coalesce
(
trunc
(
extract
(
epoch from
(
t.ticket_reaction_date - t.ticket_creation_date
))
/60.0
)
, 0.
0
)
as ticket_reaction_minutes,
coalesce
(
trunc
(
extract
(
epoch from
(
t.ticket_confirmation_date - t.ticket_creation_date
))
/60.0
)
, 0.
0
)
as ticket_confirmation_minutes,
coalesce
(
trunc
(
extract
(
epoch from
(
t.ticket_done_date - t.ticket_creation_date
))
/60.0
)
, 0.
0
)
as ticket_done_minutes,
coalesce
(
trunc
(
extract
(
epoch from
(
t.ticket_signoff_date - t.ticket_creation_date
))
/60.0
)
, 0.
0
)
as ticket_signoff_minutes
from im_tickets t,
im_projects p,
acs_objects o
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment