Checkbox variable is not showing in the task and can't close out task since it's mandatory
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-20-2024 05:28 AM
I'm unable to close out task since the checkbox variable is not visible and it's mandatory.. How can I close it out?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-20-2024 06:57 AM
Are you looking for a one off solution to help close this specific task or are you looking for a solution to always check this box?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-21-2024 01:28 PM
Yes one off solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-21-2024 01:46 PM - edited 11-21-2024 01:49 PM
Since it's a one off solution for this specific record, you can go into a background script (System Definition > Scripts-Background) and input the following code. You'll need the sys_id of the specific catalog task record, as well as the variable name that you're looking to update to "true"
var gr = new GlideRecord("sc_task");
gr.get("sys_id of the record you're on");
gr.query();
if(gr.next()){
gr.setValue("variable_name", true);
gr.update();
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-22-2024 06:32 AM
That didn't work because the checkbox is not there on the variable listed on the task form. But it's a variable that is active under variables on the catalog item.