In RITM 'Task SLAs' related list, 'New' button should be visible only for Request management group.

ashok17
Tera Contributor

In RITM backend form 'Task SLAs' related list, 'New' button should be visible only for Request management group.

 

I have using below script in 'Task SLAs' list control but not works, please suggest on this

 

if (!parent.active) {
    answer = true; //hide the New button if the RITM is inactive
} else if (gs.getUser().isMemberOf('22122b37c611228400f9ff91c857581d') || gs.hasRole('admin')) {
    answer = false; //do not hide the New button if the RITM is active and the user is a member of the group
}

else {
    answer = true; //hide the New button if the user is not a member of the group
}
2 REPLIES 2

Mark Manders
Mega Patron

That's not how SLA's work. You trigger an SLA, based on the conditions and then it will show up, related to your record. You can't 'create' an SLA record from an record, or at least: you shouldn't be able to create an SLA record this way.

 

I'm not sure if your question is to hide the already visible button for certain users, or to put it on there. You shouldn't have the button there. What's your use case?

 


Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark

AndersBGS
Tera Patron
Tera Patron

Hi @ashok17 ,

 

Why? According to how SLA works (I fully agree with @Mark Manders ) there should NOT a new button for request management group. You should instead create SLA definitions for auto assignment of SLAs based on conditions.

 

If my answer has helped with your question, please mark my answer as accepted solution and give a thumb up.

 

best regards

Anders

If my answer has helped with your question, please mark my answer as the accepted solution and give a thumbs up.

Best regards
Anders

Rising star 2024
MVP 2025
linkedIn: https://www.linkedin.com/in/andersskovbjerg/