Registered member login:
Register Now
Altirigos » Notification Server and Solutions » Help Desk » Need Help with incident rule

» Current Poll
Vista?
Staying on XP until Windows 7 - 72.14%
101 Votes
Already on Vista - 10.71%
15 Votes
Planning an upgrade to Vista soon - 10.00%
14 Votes
Other (please explain) - 7.14%
10 Votes
Total Votes: 140
You may not vote on this poll.
» Stats
Members: 6,831
Threads: 9,765
Posts: 47,797
Top Poster: Nick (4,800)
Welcome our newest member, jdh2000
» Online Users: 45
6 members and 39 guests
3dd, Baek8280, gregmumphrey, MikeCusick, rdvanorman, treyjack
Most users online at once 294, 06-30-2007 at 01:24 PM.
» January 2009
S M T W T F S
28293031 1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31
Reply
Old 07-19-2007, 10:15 AM   #1 (permalink)
 
Status: Altiris Admin
Join Date: 07-19-2007
Location: CONNECTICUT
Posts: 34


Exclamation Need Help with incident rule

I would like to set up a rule which sets a timer for each new incident, and tracks the time between incident creation and resolution.

any suggestions would be greatly appreciated
todd.waldron@yale.edu is offline   Reply With Quote
Old 07-19-2007, 01:33 PM   #2 (permalink)
 
Status: Altiris Admin
Join Date: 04-03-2007
Location: Texas
Posts: 42


What exactly do you want the rule to do with the time, or is the rule to calculate it? Will the data need to be stored somewhere?

Amber
asebastian is offline   Reply With Quote
Old 07-19-2007, 02:19 PM   #3 (permalink)
 
Status: Altiris Admin
Join Date: 07-19-2007
Location: CONNECTICUT
Posts: 34


i'm just looking to calculate it anddisplay it on the incident and occasionaly report on against it. I actually did observe a "time spent" field, but the value doesn't jibe with the time stamps for incident creation & incident resolution.

It simply shows a value of, say, 4 in this case. no hours/minutes, etc.

I'm just not sure how to configure the action when creating an incident rule.

I'm very new to the Altiris suite ( I just inherited an altiris implementation ), and am not sure how to configure the Action item in the incident rule I'm trying to create.

Even just tweaking the 'Time Spent' field to more accurately reflect the actual time, in terms of hours & minutes, would be just fine.

Last edited by todd.waldron@yale.edu; 07-19-2007 at 02:33 PM..
todd.waldron@yale.edu is offline   Reply With Quote
Old 07-19-2007, 02:47 PM   #4 (permalink)
 
Status: Altiris Admin
Join Date: 04-03-2007
Location: Texas
Posts: 42


You should be able to update the time spent field when updating the incident. However, this field is only keyed in minutes. It will automatically calculate a time spent based on the amount of time the incident is opened for editing, but this usually isn't an accurate interpretation.

You could also create a SQL query that will calculate the time amount of time between the create date and time and the last modified date and time.

select workitem_created_on, workitem_modified_on, DATEDIFF(dd,workitem_created_on,workitem_modified_ on) as 'Time Spent'
From Workitem_Current_View
**This statement will tell you how many days were between the created date and the modified date.

Hope this helps!

Amber
asebastian is offline   Reply With Quote
Old 07-19-2007, 03:07 PM   #5 (permalink)
 
Status: Altiris Admin
Join Date: 07-19-2007
Location: CONNECTICUT
Posts: 34


Thank you so much Amber! It looks like this will do the trick - basically, we don't want to allow workers to input the time spent, we'd rather have altiris helpdesk keep track, and this looks like exactly what i need for the rule.

tjw
todd.waldron@yale.edu is offline   Reply With Quote
Old 07-19-2007, 09:20 PM   #6 (permalink)
 
Mike's Avatar
 
Status: Altiris Engineer (Super Mod)
Join Date: 02-22-2005
Location: South Jordan, Utah, USA
Posts: 1,195


What a kickin idea. I decided to create the incident rule myself. Feel free to tweak:

Code:
<Helpdesk>
<IncidentRules>
  <IncidentRule>
    <Guid>83d10fd4-aeae-44a3-8faa-24f45150e1f5</Guid>
    <Name>Date Stamp Closed Incidents</Name>
    <Description>This incident rule automatically appends the incident comment with the total time taken to resolve the incident
Mike Ainsworth
mainsworth@ns-experts.com</Description>
    <Status>active</Status>
    <Rank>0</Rank>
    <IsTerminal>no</IsTerminal>
    <ApplyTo>all</ApplyTo>
    <IncidentEdits>
      <SetValue field="workitem_comment" value="workitem(workitem_comment)&#xD;&#xA;------------------------&#xD;&#xA;Time to resolution = HDQUERY[[select DATEDIFF(hh,[workitem_created_on],[workitem_modified_on]) From [Workitem_Current_View] where workitem_number = WORKITEM(workitem_number)]] hours" />
    </IncidentEdits>
    <Criteria>
      <Criterion field="workitem_status_lookup_id" op="optEqual" value="600" type="uint" />
    </Criteria>
  </IncidentRule>
</IncidentRules>
</Helpdesk>
__________________
______________________
Mike Ainsworth


Last edited by Mike; 07-19-2007 at 09:23 PM..
Mike is offline   Reply With Quote
Old 07-20-2007, 04:12 PM   #7 (permalink)
 
Status: Altiris Admin
Join Date: 07-19-2007
Location: CONNECTICUT
Posts: 34


Mike, Thanks so much for taking the time write up the rule & reply. VERY much appreciated. I'm going to set this up now and kick the tires.

Really appreciate the help, thanks again.

-tjw
todd.waldron@yale.edu is offline   Reply With Quote
Old 07-20-2007, 06:31 PM   #8 (permalink)
 
Mike's Avatar
 
Status: Altiris Engineer (Super Mod)
Join Date: 02-22-2005
Location: South Jordan, Utah, USA
Posts: 1,195


Cool. Let me know if you have any trouble importing it. I dressed mine up a little by using markup tags like [ b ] [ /b ] and [ color=blue ] [ /color ] (w/out the spaces), but the forum automatically removed those tags when I posted.

To change the time to minutes instead of hours, you could change the datediff statement to mi instead of hh.

That was a fun one. Hope it helps.
__________________
______________________
Mike Ainsworth


Last edited by Mike; 07-21-2007 at 12:48 AM..
Mike is offline   Reply With Quote
Old 02-27-2008, 04:27 PM   #9 (permalink)
 
Status: Altiris Admin
Join Date: 09-14-2006
Location: Tucson, AZ, USA
Posts: 35


this is very slick. thank you
gwagner is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Powered by vBadvanced CMPS v3.0 RC2

All times are GMT -4. The time now is 02:09 PM.


Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
vB.Sponsors
Altirigos