ATF: I am trying to create a change request from a incident ticket. I received error
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2025 07:58 AM
Good Morning all,
I am trying to create a change request from a incident ticket. I received error
TypeError: changeRequestDateMsg.empty is not a function
Any guidance will be appreciated.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-21-2025 12:56 AM
Can you check if all the required fields in CHANGE request is filled when you are trying to create from incident.
VErify if your UI action has something like below in code
var change = new GlideRecord("change_request");
change.initialize();
change.short_description = current.short_description; // incident Short description mapped to change short description.
change.description = current.description;
change.cmdb_ci = current.cmdb_ci;
change.priority = current.priority;
var changesysID = change.insert();
action.setRedirectURL(change);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-21-2025 01:16 AM
are you getting same error when you are testing it from UI ?
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-21-2025 06:33 AM
- In the incident form, we have a custom pop-up that I was able to use the custom UI test category to capture the feature. The change is not fully populated because it was just a test to show that I was able to create a change from an incident record
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-21-2025 01:56 AM
Hello @YolandaF
Did you tried to check the existing OOB Test available, try to follow same and see if it can help you out.
In your personal instance you can check for below url
If my response has helped you hit helpful button and if your concern is solved do mark my response as correct.
Thanks & Regards
Viraj Hudlikar.