I need to setup a report that I can run on a monthey basis that will show my how many Helpdesk tickets have been opened by Location. Under User Details, Custom 4 is setup with the users Location. I walked through the Report Wizard but didn't see any way to use Custom 4 as a query field. If someone has done this before, can you let me know the script you used to get the info? Of if someone can tell me how to use the Report Wizard and query the Custom 4 field? Thanks.
0 Comments   [ + ] Show Comments

Comments

Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Answers

0
jmcelvoy,

What should the report return?

Is it just a count of the tickets created in the last month by submitter location?
Answered 01/07/2011 by: dchristian
Red Belt

Please log in to comment
0
Exactly. My boss just needs to see how many tickets where created by each branch/location. On my user import, I have Custom 4 set to physicaldeliveryofficename, which pulls from AD the Office field under the user properties. Does that make sense?
Answered 01/07/2011 by: jmcelvoy
Second Degree Blue Belt

Please log in to comment
0
Jmcelvoy,

Try these.

This should give you everything in the last 30 days:
SELECT Coalesce(U.CUSTOM_4, 'Unassigned') AS BRANCH,
COUNT(*)
FROM HD_TICKET H
LEFT JOIN USER U
ON H.SUBMITTER_ID = U.ID
WHERE H.CREATED >= DATE_SUB(Current_date(), INTERVAL 30 DAY)
GROUP BY BRANCH


You can use this for a specific time period:
SELECT Coalesce(U.CUSTOM_4, 'Unassigned') AS BRANCH,
COUNT(*)
FROM HD_TICKET H
LEFT JOIN USER U
ON H.SUBMITTER_ID = U.ID
WHERE ( H.CREATED >= '2010-12-01'
AND H.CREATED <= '2010-12-31' )
GROUP BY BRANCH
Answered 01/07/2011 by: dchristian
Red Belt

Please log in to comment
0
Works perfect. Thank you very much.
Answered 01/07/2011 by: jmcelvoy
Second Degree Blue Belt

Please log in to comment
Answer this question or Comment on this question for clarity