Change Management

shatakshi10
Tera Contributor

Users without the 'change_manager' or 'admin' role should NOT be able to Create a change task after after the change has left the 'New' state.

Users without the 'change_manager' or 'admin' roles should also not have an 'Edit' button on the 'Affected CIs' related list on the change task record

The new button and edit button on the related list needs to be hidden.

1 ACCEPTED SOLUTION

Hi @shatakshi10 ,

 

Here are the images I tested, and it worked for me.

 

Business Rule :

MoinKazi_0-1729616648302.png

 

Please enter the backend value for the new state; in my case, it was '-5'.

MoinKazi_1-1729616738403.png

 

Output : 

MoinKazi_2-1729616808994.png

When the state is new, the task has been created successfully.

MoinKazi_3-1729616853209.png

 

 

I hope the solution to your second requirement is included in my initial work for you. If it’s not, please let me know.

 

Hope this help you.

 

Regards

Moin

 

View solution in original post

9 REPLIES 9

Hi @shatakshi10 ,

 

Here are the images I tested, and it worked for me.

 

Business Rule :

MoinKazi_0-1729616648302.png

 

Please enter the backend value for the new state; in my case, it was '-5'.

MoinKazi_1-1729616738403.png

 

Output : 

MoinKazi_2-1729616808994.png

When the state is new, the task has been created successfully.

MoinKazi_3-1729616853209.png

 

 

I hope the solution to your second requirement is included in my initial work for you. If it’s not, please let me know.

 

Hope this help you.

 

Regards

Moin

 

Is there a way to hide the new button that is present on related list view?

You can navigate to the related list, right-click on the column header, select Configure > List Control, and then check the Omit New Button checkbox.

 

Hope this help you.

 

Regards

Moin

Runjay Patel
Giga Sage

Hi @shatakshi10 ,

 

You can do below.

1. create a new UI action on change task table with same condition of exiting ui action (Global one). and give same give same action name "sysverb_new" so that OOB one get hidden.

2. Now add more condition like

Exiting: current.canCreate() && !RP.getListControl().isOmitNewButton() && RP.isRelatedList() && !RP.isManyToMany() && !RP.isInDevStudio()

+

Add on: gs.hasRole('change_manager');

 

Do the same for 'Edit' button on the 'Affected CIs' related list

 

-------------------------------------------------------------------------

If you found my response helpful, please consider selecting "Accept as Solution" and marking it as "Helpful." This not only supports me but also benefits the community.

Regards
Runjay Patel - ServiceNow Solution Architect
LinkedIn: https://www.linkedin.com/in/runjay
YouTube: https://www.youtube.com/@RunjayP

-------------------------------------------------------------------------