- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-10-2019 07:54 AM
Hello,
I need some functionality setup where
- When I create a Task, subtasks auto Generate and have the parent set to the original task.
- I also need this task to generate an incident and set the task as the parent.
I can get the Subtasks and incidents to generate however, they are not assigning the parent as the Task.
I am currently trying to accomplish this task via workflow. is there a better way to accomplish this?
Please let me know if any more information is needed.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-10-2019 08:04 AM
Hi,
Please use this script to write a BR on task
var gr = new GlideRecord("incident");
gr.initialise();
gr.short_description = "your short descp";
gr.state = "1";
gr.parent = current.sys_id;
gr.insert();
Regards,
Munender
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-10-2019 08:04 AM
Hi,
Please use this script to write a BR on task
var gr = new GlideRecord("incident");
gr.initialise();
gr.short_description = "your short descp";
gr.state = "1";
gr.parent = current.sys_id;
gr.insert();
Regards,
Munender
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-10-2019 11:16 AM
I can't seem to get the Assignment Group to assign through this method. Any Suggestions?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-10-2019 11:43 AM
actually I got it. Thanks for the help. This was perfect.