how can i detect if user is member of a group

Ugur GUNGOR August 10, 2014

Hello i am new on jira scripting suite. . How can i get groups ?

Basically,what i need

if group == "administrators":

do something

else

print "you dont have perm"

what i have to do with group variable first ?

2 answers

1 accepted

2 votes
Answer accepted
Carsten Hellweg August 10, 2014

if you look at the comments on this page, there is an example in which a user-group related issue is posted:
http://quisapps.com/confluence/display/JSS/Scripting+Samples#ScriptingSamples-Validation

1 vote
Carsten Hellweg August 10, 2014

in the comments below the article, there is some demo-code concerning groups

http://quisapps.com/confluence/display/JSS/Scripting+Samples

Suggest an answer

Log in or Sign up to answer