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.

Hide Add Task Button on Project Workspace

nowitsvashu
Tera Guru

Hi There,

 

is there any way we can hide Add Task button on project workspace. I tried to hide it but its not present in declarative action/ui action or anywhere else.

1 ACCEPTED SOLUTION

@nowitsvashu

Please open the SN Task Planner 1 config pane. and In Can create project task field click on the 

MIftikhar_0-1759917213580.png

In Can create project task field select the Use static Input option.

MIftikhar_1-1759917365364.png

Uncheck the option and save the page

MIftikhar_2-1759917439151.png

Thanks & Regards,
Muhammad Iftikhar
If my response helped, please mark it as the accepted solution so others can benefit as well.

 

Thanks & Regards,
Muhammad Iftikhar

If my response helped, please mark it as the accepted solution so others can benefit as well.

View solution in original post

11 REPLIES 11

M Iftikhar
Tera Sage

Hi @nowitsvashu , 
Please open the Project Workspace experience in UI Builder.

MIftikhar_0-1759915700801.png


You can open the Planning tab

MIftikhar_1-1759915723076.png

 

— on this screen, you’ll see the “Add Task” button.

MIftikhar_3-1759915762936.png


Kindly locate this button component in the UI Builder and set its visibility to hidden so it doesn’t appear on the Project Workspace page.

Thanks & Regards,
Muhammad Iftikhar
If my response helped, please mark it as the accepted solution so others can benefit as well.

Thanks & Regards,
Muhammad Iftikhar

If my response helped, please mark it as the accepted solution so others can benefit as well.

Thanks for your reply @M Iftikhar but Add Task is not visible in any config of ui builder. 

@nowitsvashu

Please open the SN Task Planner 1 config pane. and In Can create project task field click on the 

MIftikhar_0-1759917213580.png

In Can create project task field select the Use static Input option.

MIftikhar_1-1759917365364.png

Uncheck the option and save the page

MIftikhar_2-1759917439151.png

Thanks & Regards,
Muhammad Iftikhar
If my response helped, please mark it as the accepted solution so others can benefit as well.

 

Thanks & Regards,
Muhammad Iftikhar

If my response helped, please mark it as the accepted solution so others can benefit as well.

@nowitsvashu @M Iftikhar 

Though the solution provided by Muhammad Iftikhar is technically right, it is a customization. 

 

It is advisible to handle this use case through ACL. Please create an ACL(or update and existing ACL)  to not allow create of Project task, thats it, OOB code should honour that ACL and stop showing the new button.

Kieran Anson
Kilo Patron

Hi @nowitsvashu to confirm, are you wanting to prevent the creation of tasks only within workspace for these users? These same users should be allowed to create tasks via core UI?