Want to build Copy Problem Functionality.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-24-2025 09:01 AM
I want to build functionality "Copy Problem" Like Copy Incident in easy way. I did it in following way -
UI Action -
UI Action Script -
Script Include -
This Functionality is working with this code. But in this UI action code i send all the details in the URL. And i don't want to send details in URL due to security reason.
How can i achieve this in another way?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-24-2025 09:47 AM
Hello @arshadansar ,
You just need the following code in your UI Action.
var fieldsToCopy = [
'short_description',
'description',
'cmdb_ci'
];
var grCopy = new GlideRecord('problem');
grCopy.initialize();
fieldsToCopy.forEach(field => {
grCopy.setValue(field, current.getValue(field));
});
var copySysID = grCopy.insert();
action.setRedirectURL(grCopy);
And please disable the Client checkbox:
Regards,
Robert
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-24-2025 09:55 AM
In this solution you insert new problem record but i don't want to insert. Only show all the details in new record and agent can submit it manually after updating extra required details.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-24-2025 09:56 AM
Hello @Robert H
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-24-2025 10:00 AM
@Robert H
I want similar to "Copy Incident" but less fields fill (short_description, description, company, configuration item, impact and urgency) in new problem record and not submitted automatically. Agent can able to submit manually after updating addition fields.
Thanks