how to auto populate incident number on a change request when change is created from Incident
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-19-2025 11:08 PM
how to auto populate incident number on a change request when change is created from Incident
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-20-2025 06:59 AM - edited 05-20-2025 07:00 AM
-> 1st option: Try to look at this Business Rule first: "Link change to task record"
-> 2nd option: Create a Business Rule on Change Request
1. Trigger: When a change is created from an Incident
2. Table: Change Request [change_request]
3. When: before
4. Insert: true
5. Update: false
6. Filter condition: current.u_incident_reference.nil() && current.operation() == 'insert'
7. Example of script:
(function executeRule(current, gSNC, gs) {
var incidentSysId = gs.getSession().getProperty('change_link');
if (incidentSysId) {
current.u_incident_reference = incidentSysId;
}
})();
NB: getProperty('change_link') should return an object containing tablename, record id, ...

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-20-2025 07:21 AM
Are you creating Change using any UI Action or via script?
If using UI Action, do you use the OOTB UI Action to create Change or created custom one?
Palani