Can you add Affected CIs to a Normal Change Template

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-17-2018 08:01 AM
Hi,
Does anyone know if its possible to add the Affected CIs related list to a normal change template? I know it can be done for Standard Change Templates (see How to create a Standard Change template with multiple Affected CIs)
In the absence of service mapping, I have a requirement for both standard and normal change templates to list multiple affected CIs which can then be pulled through to the related list on the change when the template is selected
Thanks
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-18-2018 04:00 AM
That is true, Since related records are created on server side, i guess it was not enabled through the template bar.
There is a workaround similar to the standard change. You should create a new record producer for Normal Change Templates. It should display all Parent templates (Filter out by eg Table is Change Request and Next Related Child Template is not empty or something unique)
Upon submission just redirect user to the module link and you should be all good. The approach is similar to standard proposal, so users would used to it.
producer.redirect = "change_request.do?sys_id=-1&sysparm_template="+current.variables.template.getDisplayValue();
Thanks