i want to customize OOB cancel change UI action on change form
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-30-2025 10:54 AM
Hi Team,
I have the requirement like below,
1. When the Cancel UI Action is used, all Active Child Change Tasks should have the following values updated
If the Change Task Type is Implementation
State = Closed
Close Code = Not Attempted
Close Notes = The Implementation was not attempted
If the Change Task Type is Testing
State = Closed
Close Code = Not Attempted
Close Notes = The Change was cancelled
If the Change Task Type is any other Change Task Type:
State = Closed
Close Code = Not Attempted
Close Notes = The Change was cancelled
3. When a Change User uses the Cancel UI Action Button, the Change's Close Notes should be populated with the cancellation comments (cancellation reason field )
how to achieve this.
Regards,
Abhilasha G T
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-30-2025 11:01 AM - edited 04-30-2025 11:04 AM
Hi @Abhilasha G T ,
You can write new UI Action [ Cancel ] on Change [ change_request ] table and apply all logic for Change Task.
In script code, first read all active change task via gliderecord query and while itrating the result set ( using while loop ) apply the IF condition to check the Change Task Type for state,code and notes update.
Have you writen any code for this, if yes please share.
-Thanks,
AshishKM
Please mark this response as correct and helpful if it helps you can mark more that one reply as accepted solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-30-2025 11:25 AM
Hi Ashish,
Thanks for ur reply ,
Need to customize the OOB ui action only.
Since in this ui action ,client check box is enabled can't glide the record
I have created client callable script include and called that in UI action.
That is not working.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-30-2025 12:55 PM
Please share the code.
Please mark this response as correct and helpful if it helps you can mark more that one reply as accepted solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-01-2025 04:57 AM
Hi Ashish,
Please check below codes for UI action and Script Include,
Condition:gs.hasRole('itil,sn_change_write') && new ChangeFormUI(current).isCancelAvailable() &&(current.state!='0' || current.state!='3' || current.state!='4')
Script Include