- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-04-2023 02:23 PM
Hello,
I have been attempting to establish a relationship between the task and change request tables, but I have been unable to display the change request number in the catalog task.
Here is what I have done. Hope someone could provide suggestions.
It suppose to displays the change request number in the Test Change Request Tab, but it not.
Thank you
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-06-2023 08:42 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-04-2023 10:06 PM
Hello @Erica2 ,
Please follow the below scripting :
var chg = new GlideRecord('change_request');
chg.setValue("parent",current.sys_id);
if(chg.get(current.rfc)){
if(chg.parent == ''){
chg.parent = current.sys_id;
chg.update();
}
}
Please mark my answer correct or helpful, if applicable.
Thanks & Regards,
Chaitali Vale
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-05-2023 09:06 AM
Good morning @Chaitali_Vale
Thank you for providing the code. I have tried the code, but run in to an issue where all the change request number are returned. Is it possible that we can filter only the change request number that tied to specific RITM?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-06-2023 08:42 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-06-2023 10:18 AM
Hi @Brian186
It is working perfectly. Thank you.