How to create Copy Issue ui action in Issue Table?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-20-2024 06:58 AM
How to create Copy Issue ui action in Issue Table?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-20-2024 07:14 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-20-2024 08:56 AM
Hi @PrashantK270430 ,
System Definition > UI Actions in the application navigator.
Create a New UI Action:
Click the “New” button, Table: Issue, Action Name: copy_issue, Order: 100, Form Button: Check this option, Condition: current.canWrite()
Add below script:
var newIssue = new GlideRecord('issue');
newIssue.initialize();
newIssue.short_description = current.short_description;
newIssue.description = current.description;
newIssue.insert();
action.setRedirectURL(newIssue);
If my response helped, please mark it as the accepted solution ✅ and give a thumbs up👍.
Thanks,
Anand