test
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-08-2025 02:07 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-29-2025 06:01 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-29-2025 06:01 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-08-2025 02:11 AM
// Update the opened_at field of specific cases for testing
var caseGR = new GlideRecord('x_jj_dfit_case');
caseGR.addQuery('number', 'CASE0010001'); // Replace with the actual case number or other filter
// You can also use addQuery('sys_id', '...') or broader filters
caseGR.query();
while (caseGR.next()) {
var newDate = new GlideDateTime();
newDate.subtract(GlideDateTime.DAY, 15); // Set to 15 days ago
caseGR.opened_at = newDate;
caseGR.update();
gs.info('[Test] Updated case ' + caseGR.number + ' opened_at to: ' + newDate.getDispla
yValue());
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-08-2025 07:46 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-08-2025 07:50 AM
var apprec1 = new GlideRecord('sysapproval_approver');
apprec1.addQuery('state', 'requested');
apprec1.addQuery('sysapproval.opened_at', '<=', gs.daysAgoStart(14));
apprec1.addQuery('sysapproval.record_producer', '58d2d15adbc4341056b9475f29961970');
apprec1.query();
while (apprec1.next()) {
apprec1.state = 'not_required';
apprec1.comments = 'The case has been closed because it was not approved in the defined time. If you still require the requested action, please submit a new case.';
apprec1.up
date();
}