Linking RITM to a CHG

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā06-14-2018 07:26 AM
We have a requirement to link RITM to a CHG record.
We are able to do this, but there are cases when an RITM needs to be linked to 2 CHG records.
Scenario: When RITM123 is linked to CHG123, and we link the same RITM123 to CHGXYZ ---- the link is broken on RITM123 and CHG123. It behaves like an RITM is only allowed to be linked ONCE.
How can I change this to allow it to be linked multiple times?
Thanks in advance
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā06-14-2018 12:27 PM
I did some changes there , now I am able to see only one parent record , previously i was able to see ritm number in change and change number under ritm .
Now I have created one reference field on change table which is storing ritm number , but after applying this logic BR is not working I am not getting change/ritm number in logs .
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā06-14-2018 12:28 PM
using this script for BR
var gr = new GlideRecord('sc_req_item');
gr.addQuery('sys_id',current.parent);
gr.query();
while(gr.next())
{
gr.state = 4;
gr.update();
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā06-14-2018 12:32 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā06-15-2018 07:31 AM
Hello Shashikant,
What i need to do is , create change from ritm and then link them using related list. And when change is closed ritm should go in closed incomplete . and when I am using parent field on both table via related list my ritm is going in closed complete state is there any other way to slove this as i do not want to create any reference field on any of the table . To create change from ritm i am using workflow run script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā06-15-2018 07:53 AM
here