Hide Subtask create button for certain roles

Cedric_DEVAUX May 14, 2018

Hello,

 

I want to hide create subtask button for specific role members. I'm using the script fragment to hide button with this condition:

! isUserMemberOfRole('Administrators', 'QOP Rules Manager')

My problem is the button is hidden for all users ... :(

Could you help me?

 

Thank you

 

1 answer

1 accepted

0 votes
Answer accepted
Alexey Matveev
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 14, 2018

The problem is that in your case isUserMemberOfRole('Administrators', 'QOP Rules Manager') always returns false.

Try like this:

!(isUserMemberOfRole("Administrators") || isUserMemberOfRole("QOP Rules Manager"))
Venugopal Paladi March 14, 2023

Hi @Alexey Matveev 

May I know what to be given for a group?

Create Sub-task button should be hidden for all the users except one group users.

 

Thanks,

Venu

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events