Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,369,236
Community Members
 
Community Events
168
Community Groups

Comment Level validator

Hi,

I would like that if the user sets the Coment Level to a different one than All Users, it will not be possible to perform the transition to the next status. A comment is obviously required.

I tried to solve this problem like this:

Issue issue = issue
def cfm = ComponentAccessor.getCustomFieldManager()

def comment = transientVars.get("comment")
if (comment.getRoleLevel()) {

throw new InvalidInputException("Comment must be public")

}

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events