How to create Copy Issue ui action in Issue Table?

PrashantK270430
Tera Expert

How to create Copy Issue ui action in Issue Table?

2 REPLIES 2

Anurag Tripathi
Mega Patron
Mega Patron

Anand Kumar P
Giga Patron
Giga Patron

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