SIL if statement not working as expected

Baybars Kumbasar October 2, 2017

I have the simplest SIL script that should change the security group based on reporter on Create. 


if (userInGroup("XYZ", reporter));
{
security = "Level1";
}

But this doesn't work as expected: Even if the reporter is not a part of "XYZ" group, the issues are created with "Level1" security level. The default is "Level0". 

It looks like regardless of the group membership of the reporter, everything is set to "true". Why? What could be wrong? 

2 answers

1 accepted

0 votes
Answer accepted
Baybars Kumbasar January 9, 2018

There was an extra semicolon on the first line. Yes, I'm blind. 

0 votes
Jonathan Muse _Appfire_
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.
January 9, 2018

@Baybars Kumbasar, on the surface there doesn't appear to be anything wrong. Where are you using the script? In a workflow post function?

Baybars Kumbasar January 9, 2018

Hey there was an extra semicolon on the first line, I missed it. Thanks for looking 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events