what i want is only user in "SWTL" project role can select except "Fixed" as resolution(like "Reject","Incomple"...), and all sw developers can select "Fixed" as resolution
so i add a script validator as below
isUserMemberOfRole('SWTL') && issue.resolution?.name != 'Fixed'
but the result is strange.
1 one user is of "SWTL" role ,and when choose Fixed,it prevents,but when choose not "Fixed" like "Reject" or "Incomplete" or others. it's ok.
2 if the user is not of "SWTL" role,no matter what resolution he choose,it prevents.
anyone can tell how to write the script condition in "Validators"