- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-10-2022 05:04 AM - edited 11-10-2022 05:06 AM
Hello All,
I have a requirement when change is created from incident it should be shown under "change request" related list. Both the incident and change request will have the same parent, which is case.
Any idea how to do this?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-10-2022 05:36 AM
As you have additional condition, I would suggest you to create new Related list for it.
1. Navigate to System Definition > Relationship.
2. Create new record with Name = Change Request, Applies to Table = Incident, Queries from table = Change Request.
3. Query with script as below:
current.addQuery('sys_id', parent.rfc);
current.addQuery('parent',parent.parent);
current.addEncodedQuery("parent.numberSTARTSWITHCS");
4. From Incident form, configure this new Related List and add on the form.
Thanks
Anubhav Ritolia
ServiceNow Rising Star 2023
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-10-2022 05:07 AM
This is little confusing. Can you be little more elaborate with example?
Thanks
Anubhav Ritolia
ServiceNow Rising Star 2023
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-10-2022 05:16 AM
Hi @AnubhavRitolia
Yes I can.
My challenge is similar to this one, except my parent is case, and not incident: https://www.servicenow.com/community/it-service-management-forum/change-request-related-list/m-p/852...
To further explain,
-Case is parent of inc
-Same case is parent of change. Change is opened from inc, and is related
-Inc and case is visible i related lists in change
-case is visible in incident related list but change is not
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-10-2022 05:36 AM
As you have additional condition, I would suggest you to create new Related list for it.
1. Navigate to System Definition > Relationship.
2. Create new record with Name = Change Request, Applies to Table = Incident, Queries from table = Change Request.
3. Query with script as below:
current.addQuery('sys_id', parent.rfc);
current.addQuery('parent',parent.parent);
current.addEncodedQuery("parent.numberSTARTSWITHCS");
4. From Incident form, configure this new Related List and add on the form.
Thanks
Anubhav Ritolia
ServiceNow Rising Star 2023
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-10-2022 05:50 AM
Again, thank you very much for your help @AnubhavRitolia 🙏