请求|工单
请求历史查询表
需求场景: 客户希望通过查看工单历史表,查询经过多次状态变更的工单,诸如多次关闭后又打开的工单来进行进一步分析,可以使用如下报表来观察操作状态值多次出现close的情况,然后可以进一步进行分析。 SQL示例: select wh.workorderid as "工单id",wo.title as "主题", LONGTODATE(wh.operationtime) as "操作时间" , wh.description as "描述", wh.operation as "操作" from ...
查询造成工单SLA逾期的技术员
SELECT wo.WORKORDERID AS "请求ID", wo.TITLE AS "主题", tisla.FIRST_NAME AS "违反SLA的技术员", wos.ISOVERDUE AS "请求·逾期状态", ti.FIRST_NAME AS "指派的技术员" FROM WorkOrder wo LEFT JOIN WorkOrderStates wos ON wo.WORKORDERID=wos.WORKORDERID LEFT JOIN SDUser td ON ...
MSSQL-工单量-工单按时响应率-工单按时解决率-二次开单率-满意度 报表
报表格式如图: SELECT case when "ti"."FIRST_NAME" is not null then "ti"."FIRST_NAME" else '合计' end "工程师名", count ("wo"."WORKORDERID") AS "工单受理量", cast ( cast (100.0*sum(case when "wos"."IS_FR_OVERDUE"= 0 then 1 else 0 end)/count("wos"."IS_FR_OVERDUE") as ...
MSSQL获取某一年每个月的工单量
MSSQL 查询2020年的每个月的工单量,其它修改年份即可: select DATEPART(mm, DATEADD(s,CREATEDTIME/1000,'19700101') ) as '月份',count(WORKORDERID)as '工单量' from WorkOrder where DATEPART(yy, DATEADD(s,CREATEDTIME/1000,'19700101') )=2020 group by DATEPART(mm, ...
SQL报表 - 查询工单的历史
查询工单历史信息,包括操作人、操作时间、动作/状态、描述: select wh.HISTORYID as "HISTORYID", aau.FIRST_NAME as "OPERATION OWNER", longtodate(wh.OPERATIONTIME) as "OPERATION TIME", wh.DESCRIPTION as "DESCRIPTION", wh.OPERATION as "OPERATION", whd.HISTORYDIFFID as ...
审批人的查询报表
因为SDP审批人员在完成审批后,就无法查看相应的审批请求,而报表模块中同样没有默认的报表可以支撑这个查询,所以基本上是通过查询报表实现,语句如下: 语句在11.1版本上是验证过,可以执行,如果是11以下的版本,可以参考另外论坛上的语句: 11.1以下版本查询报表语句: 审批报表 按照需求类指标的要求,需要导出审批的报表,包含审批人,审批Email地址,审批历史,审批备注等信息。 查询语句如下: SELECT wo.WORKORDERID "Request ID", wo.TITLE ...
如何查询日常工作时间之外提交的工单
SQL SERVER SELECT wo.WORKORDERID "Request ID", aau.FIRST_NAME "Requester", cd.CATEGORYNAME "Category", wo.TITLE "Subject", qd.QUEUENAME "Group", sdo.NAME "Site", LONGTODATE(wo.CREATEDTIME) "Created Time", datepart(dw, dateadd(s, datediff(s, ...
统计请求在技术组内经过的时间
ServiceDesk Plus在工单指派过程中,可以以组 -> 组的方式进行转派,而在前一个组里工单经过的时间,不能使用自动报表实现,以下为通过SQL报表实现统计此信息的语句(适用于SQL Server) 即FROM GROUP(源支持组)到To GROUP(目的支持组)经过的时间(时.分),当TO GROUP为空,表示FROM GROUP为当前工单的组,即未发生组间转派。 SELECT wo.WORKORDERID "Request ID", wo.TITLE "Subject", ...
查询所有工单的审批状态
用如下sql: SELECT wo.WORKORDERID "Request ID",aau.FIRST_NAME "Requester",dpt.DEPTNAME "Department",wo.TITLE "Subject",ti.FIRST_NAME "Technician", std.STATUSNAME "Request Status", longtodate(wo.CREATEDTIME) "Created Time", asd.stagename "Stage name", ...
工单指派过的技术员及所用工时
1. 有些用户希望报表显示工单所有分配过的技术员及其所用工时,如下图所示: 2.使用附件中的查询语句可以生成上述报表