I'd like to have a post-function for issue creation that updates the "security level" field if the reporter of the ticket belongs to a certain group. I haven't been able to find a way to do this with default add-ons or Jira Workflow Toolbox or with "update on transition" add-ons.
How can I accomplish this?
Thanks a lot. I think you missed a closing brackets, but I still get an error saying ">>if<<" is not defined. I really appreciate the help, but I'd not bother you if you could point me to a reference for the syntax.
If (userInGroup(user_group, reporter))
security = security_level;
yes , you found a response :)
the reporter is a standar variable you can look at this link it could help you a know all standard variables
Just if the answer is good , pleas could you accept it to help other
thanks in advance
the script looks good to me, it's the most simple script now:
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 wit "Level1" security level. The default is "Level0".
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
We're bringing product updates and pro tips on teamwork to ten cities around the world.Save your spot