Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Management Overview -> Urgent cases #15

Closed
robwilc opened this issue Dec 16, 2016 · 3 comments
Closed

Management Overview -> Urgent cases #15

robwilc opened this issue Dec 16, 2016 · 3 comments
Assignees

Comments

@robwilc
Copy link
Collaborator

robwilc commented Dec 16, 2016

Currently this gets the case list as tickets where 'flag' is set. These are escalated tickets in the new escalation process.

Should we:

a/ Change the query to get those, like now, and also tickets where the priority field is Urgent?

b/ Change the query to just get the ones where the priority field is urgent?

@lukaszdrahal
Copy link
Collaborator

right now we are using following query for sucking data :

SELECT swtickets.TicketID AS 'ID', swtickets.Ownerstaffname AS 'Owner',
from_unixtime(swtickets.dateline, '%Y %D %M %h:%i:%s')
As
'Opened', swtickets.Subject AS 'Case', swtickets.firstresponsetime AS 'frt', swtickets.priorityTitle as 'pr' ,
swtickets.AverageResponseTime AS 'ar', swtickets.TotalReplies AS 'tr',
swtickets.TimeWorked AS 'tw', swtickets.ticketStatustitle AS 'Status', swuserorganizations.organizationname as 'on'
FROM swtickets
left join swusers on swtickets.userid = swusers.userid
left join swuserorganizations on swusers.userorganizationid = swuserorganizations.userorganizationid
WHERE swtickets.Departmenttitle ='CET' AND swtickets.ticketStatustitle <> 'Closed' AND swtickets.priorityTitle = 'Urgent'

@lukaszdrahal
Copy link
Collaborator

lukaszdrahal commented Dec 20, 2016

after adjustment we will display all tickets - also these which are closed already:

SELECT swtickets.TicketID AS 'ID', swtickets.Ownerstaffname AS 'Owner',
from_unixtime(swtickets.dateline, '%Y %D %M %h:%i:%s')
As
'Opened', swtickets.Subject AS 'Case', swtickets.firstresponsetime AS 'frt', swtickets.priorityTitle as 'pr' ,
swtickets.AverageResponseTime AS 'ar', swtickets.TotalReplies AS 'tr',
swtickets.TimeWorked AS 'tw', swtickets.ticketStatustitle AS 'Status', swuserorganizations.organizationname as 'on'
FROM swtickets
left join swusers on swtickets.userid = swusers.userid
left join swuserorganizations on swusers.userorganizationid = swuserorganizations.userorganizationid
WHERE swtickets.Departmenttitle ='CET' AND swtickets.priorityTitle = 'Urgent'
AND swtickets.dateline > UNIX_TIMESTAMP(STR_TO_DATE('201610 Monday', '%X%V %W'))
AND swtickets.dateline < UNIX_TIMESTAMP(STR_TO_DATE('201651 Monday', '%X%V %W')) ;

@robwilc
Copy link
Collaborator Author

robwilc commented Jan 18, 2017

Okay.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants