copy from inciden task 'close notes' to parent incident worknotes
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-01-2025 12:26 AM
Hi All ,
I am trying to copy close notes from incident task (when its close complete) to parent incident record in worknotes.
here is the before update with condition close notes changes business rule is used:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2025 01:15 AM
Hi @_Gaurav ,
i tried replicating the same but it did not work , below are my config and test results :
test results :
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2025 07:15 AM - edited 04-02-2025 07:19 AM
Hi @tushar_ghadage
For testing purpose, can you please remove the condition from the BR and just run on the UPDATE and try?
Also, can you replicate with my given code please?
Here is the screenshot of my configuration.
Please mark this as a solution and helpful if this resolves your query.
Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2025 08:04 AM - edited 04-02-2025 08:07 AM
Hi @tushar_ghadage ,
Are you putting some values in your close notes ? Also in your snip you BR in inactive. Make it active.
Also you can try my code which I have mentioned earlier also.
(function executeRule(current, previous /*null when async*/) {
// Add your code here
var close_info = current.close_notes.toString(); // get the value of close notes
var gr_inc = new GlideRecord("incident");
gr_inc.get("sys_id",current.incident);
gr_inc.work_notes = close_info;
gr_inc.update();
})(current, previous);
If my response helped, please hit the Thumb Icon and accept the solution so that it benefits future readers.
Regards,
Rohit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-03-2025 12:13 PM
Hi @tushar_ghadage ,
Did you check my response?
In your snip your BR is not active.
If my response helped, then accept the solution and hit the thumbs up, so that it benefits the future reader and also me for your efforts towards the community.
Regards,
Rohit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2025 08:07 AM
Hi @tushar_ghadage ,
Looks like you are updating the work notes of the incident task
you are suppose to update the close notes right?
what do you want to copy? incidents are close notes or work notes from incident task to incident
if it is close notes you can have follow below
if it is work notes follow below
Please mark my answer as helpful/correct if it resolves your query.
Regards,
Chaitanya