Custom field “copy change” ootb ui action
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-08-2023 09:48 PM
Hello,
We have a custom group field on change request form. And I have given that field name in system property so that when we “copy change” ui action that custom field also gets copied to new change request. But, if we create a change request with a group ‘A’ in the custom field and if that group ‘A’ is deactivated later and if we then use ootb “copy change” ui action the inactivated group ‘A’ is also copied to new change request. But I want to avoid copying inactive groups.
how can I do that ? We are using ootb copy change ui action.
Thanks,
Rocky.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2023 05:49 AM
@Rocky5 Try an after insert BR then with below script:
if(current.assignment_group.active==false)
{
current.assignment_group=' ' ;
current.update();
}
Also try to share BR screenshot if possible.
Raghav
MVP 2023
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2023 06:47 AM
Hi Rahav,
Below is the screenshot and still no luck.
Thanks,
Rocky.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2023 06:49 AM
@Rocky5 Is this BR on change table?
2. Is u_group a reference field referring to sys_user_group table?
Raghav
MVP 2023
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2023 06:54 AM - edited 01-09-2023 06:58 AM
Hi Raghav,
Yes BR on Change table and Yes refers to sys_user_group table.
I also have my custom field (u_group) in system property 'com.snc.change_request.copy.attributes'.
Thanks,
Rocky.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2023 08:01 AM
@Rocky5 did you make it after insert?
Raghav
MVP 2023