Custom field “copy change” ootb ui action

Rocky5
Kilo Sage

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.

10 REPLIES 10

@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

Hi Rahav,

 

Below is the screenshot and still no luck. 

Rocky5_0-1673275609193.png

 

Thanks,

Rocky.

@Rocky5 Is this BR on change table?

2. Is u_group a reference field referring to sys_user_group table?


Raghav
MVP 2023

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.

@Rocky5 did you make it after insert?


Raghav
MVP 2023