Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

how to hide baseline button from new project workspace

PatriciaA987250
Tera Expert

Hi 

There is requirement to hide baseline button under planning tab from the new project workspace. Please provide step by step guide to achieve this. Thank you

PatriciaA987250_0-1728042639515.png

 

6 REPLIES 6

Hi Damian,

Thank you for reaching out to me. I truly value your guidance and support. I tried your solution, but it didn’t work, so I opened a case with ServiceNow. The changes need to be applied through a script include.

 

Steps as follows:

1. Go to script include 'projectworkspaceconfig'

2. Modify the line as below
From: blackListedActions['baselineButton'] = !gs.hasRole('project_manager');
To: blackListedActions['baselineButton'] = true;

Hi @PatriciaA987250 ,

 

The solution you provided worked perfectly — thank you!

 

However, since modifying the OOB (Out-of-Box) Script Include is not recommended, I’m planning to create a custom copy with my changes. Could you please advise where I should attach or reference this custom Script Include in UI Builder to make it work properly?

 

Thanks