I want to attachment(s) copy from demand to enhancement, is it possible ?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-01-2024 05:27 AM
I want to attachment(s) copy from demand to enhancement, is it possible ? [when demand is turned into a project, attachments do carry over].
5 REPLIES 5
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-01-2024 05:33 AM - edited 10-01-2024 05:34 AM
Hi @Ramanjaneyulu C
yes it is possible
Refer to the below link
example code
var copy = new GlideRecord('problem');
copy.addQuery('parent', current.getUniqueValue());
copy.query();
if (copy.next()) {
GlideSysAttachment.copy('incident', current.getUniqueValue(), 'problem', copy.getUniqueValue());
}