Registered member login:
Register Now
Altirigos » Notification Server and Solutions » Help Desk » Creating Parent / Child Tickets with Attachments using TASKS

» 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,793
Top Poster: Nick (4,800)
Welcome our newest member, jdh2000
» Online Users: 46
5 members and 41 guests
jross, Keslaa, mark miller, skiierj, svitney
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 09-10-2007, 04:05 PM   #1 (permalink)
 
Status: Junior Altiris Admin
Join Date: 11-16-2006
Location: Philadelphia
Posts: 9


Creating Parent / Child Tickets with Attachments using TASKS

I have creted several tasks that can be run when a new incident is created either throught the console or via email inbox. I have two questions:

1. How can a make the attachment from the parent ticket attach to the child ticket automatically?

2. How can I get the "tasks" to run when the parent incident is created?


Thanks,

Jason
jbreslau is offline   Reply With Quote
Old 04-25-2008, 02:53 PM   #2 (permalink)
 
Status: Altiris Admin
Join Date: 08-30-2006
Location: South Dakota
Posts: 68


I am looking for the solution to "1. How can a make the attachment from the parent ticket attach to the child ticket automatically?" Anyone ever have any success doing this using a Task to do so?

Thanks
matzebru is offline   Reply With Quote
Old 05-14-2008, 11:49 AM   #3 (permalink)
 
Status: Junior Altiris Admin
Join Date: 04-30-2008
Location: North Carolina
Posts: 15


Tasks are not executed "automatically". You would either have to do it in an Automation rule or an incident rule. Attachments are stored in a separate table (workitem_attachment), with the workitem_number and the workitem_version.

Maybe something like an HDQUERY to insert a row into the workitem_attachment table for the child ticket. I can't think of the right syntac off-hand, but maybe someone could finish it.

If this is true, then

HDQUERY[[INSERT INTO workitem_attachment VALUES (Child workitem_number), Child workitem_version),....)]]
dekstrom is offline   Reply With Quote
Old 05-14-2008, 12:48 PM   #4 (permalink)
 
Status: Altiris Admin
Join Date: 08-30-2006
Location: South Dakota
Posts: 68


Hi David,

Sorry I should have made myself clearer. I know Tasks aren't automatic. Let me rephrase: "How can I make the attachment from the parent ticket attach to the child ticket automatically when the task is invoked?"

I currently have a Task that allows our workers to "Copy" a ticket and create a child ticket based on the copy. All I'm doing in the task is propagating all field entries from the Parent to the new child ticket. I haven't found a way to get the attachments on a parent ticket to propagate over to the child however.

I did attempt to get this working using info John Doyle had suggested on this Juice article but it didn't work for me after trying various ways to form the HDQUERY condition.
matzebru is offline   Reply With Quote
Old 05-14-2008, 01:41 PM   #5 (permalink)
 
Status: Super Altiris Admin
Join Date: 08-26-2006
Location: Philadelphia
Posts: 112


Can you supply the criteria and the properties you are setting in the Incident rule? Also, what errors are appearing in Altiris error log when the rule executes?

That Juice article stemmed from a conversation between John and myself when were talking shop about two years ago and that functionality has been in place and used multiple times on a daily basis since it was implemented with no problems so there must be some bug with how you are configuring this.
MeinMK5 is offline   Reply With Quote
Old 07-29-2008, 06:10 PM   #6 (permalink)
 
Status: Altiris Admin
Join Date: 08-30-2006
Location: South Dakota
Posts: 68


I can get it to work fine with a static document but how do you change the HDQUERY to get it to propagate an existing attachment on a parent ticket to a child ticket?

I have a Task setup to create a "copy" of an incident as a child incident but can't figure out how to carry over the attachment on the parent to the child ticket when the Task is invoked.

Thanks
matzebru is offline   Reply With Quote
Old 08-01-2008, 04:09 PM   #7 (permalink)
 
Status: Altiris Admin
Join Date: 08-30-2006
Location: South Dakota
Posts: 68


I was able to get this working in an Incident Rule withe the following Advanced Condition set in the "Set these properties" section:

Set "workitem_has_attachments" to "HDQUERY[[INSERT INTO workitem_attachment ([workitem_number],[workitem_version],[name],[url],[file_path],[size],[created_on],[created_by_worker_id]) SELECT a2.workitem_number,a2.workitem_version,a1.name,a1. url,a1.file_path,a1.size,a1.created_on,a1.created_ by_worker_id FROM dbo.workitem_attachment a1, dbo.workitem_current_view a2 WHERE a1.workitem_number = PARENTITEM(workitem_number) AND a2.workitem_number = WORKITEM(workitem_number) SELECT 1]]"

It's probably not the prettiest thing but it works. I have it evaluating only on 'New' Incidents (when a 'Task' I have creates the child ticket).
matzebru is offline   Reply With Quote
Old 10-28-2008, 07:14 PM   #8 (permalink)
 
Thoga's Avatar
 
Status: Altiris Admin
Join Date: 02-14-2006
Location: Italy
Age: 34
Posts: 34


Nicely done

Great query. It came in very handy today...

Thanks Matzebru.
Thoga is offline   Reply With Quote
Old 10-29-2008, 01:46 PM   #9 (permalink)
 
Status: Altiris Admin
Join Date: 08-30-2006
Location: South Dakota
Posts: 68


Thanks!

Thanks Thoga and glad to hear it worked for you!
matzebru is offline   Reply With Quote
Old 11-20-2008, 03:30 AM   #10 (permalink)
 
Status: Junior Altiris Admin
Join Date: 11-18-2008
Location: Warminster
Posts: 6


Similar Situation

Hello Matzebru,
I have a similar problem. The only difference is I'm using a automation rule to create two new tickets that are not child tickets of the original. I need copy the attachment from the original ticket to the new tickets that get created. Any help would be greatly appreciated.
bricast is offline   Reply With Quote
Old 11-22-2008, 11:10 AM   #11 (permalink)
 
dominique's Avatar
 
Status: Sticky...
Join Date: 03-04-2005
Location: Culver City, CA
Age: 52
Posts: 3,342


Did you try to set the properties of the automation rule with the query of Matzebru?
- Edit automation rule
- Edit (the pen) for "Invoke this URL
- edit (the pen) Set these properties
- from the dropdown list where you have "Action" select "Advanced Assignment"
and input

Set
Quote:
workitem_has_attachments
to
Quote:
HDQUERY[[INSERT INTO workitem_attachment ([workitem_number],[workitem_version],[name],[url],[file_path],[size],[created_on],[created_by_worker_id]) SELECT a2.workitem_number,a2.workitem_version,a1.name,a1. url,a1.file_path,a1.size,a1.created_on,a1.created_ by_worker_id FROM dbo.workitem_attachment a1, dbo.workitem_current_view a2 WHERE a1.workitem_number = PARENTITEM(workitem_number) AND a2.workitem_number = WORKITEM(workitem_number) SELECT 1]]"
I will try to test it ...

Thanks
__________________
Thanks
Dom
http://www.altirigos.com

"Helping somebody else may help you"

Last edited by dominique; 11-22-2008 at 11:46 AM..
dominique is offline   Reply With Quote
Old 11-22-2008, 02:47 PM   #12 (permalink)
 
dominique's Avatar
 
Status: Sticky...
Join Date: 03-04-2005
Location: Culver City, CA
Age: 52
Posts: 3,342


First test:
Quote:

INSERT
INTO workitem_attachment (a2.[workitem_number],
[workitem_version],[name],[url],[file_path],[size],
[created_on],[created_by_worker_id])
SELECT a2.workitem_number, a2.workitem_version, a1.name,
a1.url,a1.file_path,a1.size,a1.created_on,
a1.created_by_worker_id FROM dbo.workitem_attachment a1,
dbo
.workitem_current_view a2
WHERE a1.workitem_number ='29'
AND a2.workitem_number ='27'
in SQL it works fine with fixed incident numbers but when I replace by PARENTITEM(workitem_number) and WORKITEM(workitem_number) it is still not working as expected...
__________________
Thanks
Dom
http://www.altirigos.com

"Helping somebody else may help you"
dominique is offline   Reply With Quote
Old 11-23-2008, 10:14 AM   #13 (permalink)
 
Status: Junior Altiris Admin
Join Date: 11-18-2008
Location: Warminster
Posts: 6


Similar Situation

We found another way around it. The way we have our system set up people send emails to the same mailbox that they used to use then we forward the emails to another mailbox that Altiris pulls from though AD so we have a copy of all emails that come in. We went into the mailbox that people send their emails to and setup a rule to forward emails from the email address that all these tickets will come from and forward them to two new mailboxes. Then we set Altiris to pull from those two mailboxes and put them in the correct queues.
bricast 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 01:32 PM.


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