I am trying to create a Validator script to notify the users who are alreadymembers of the group.
Hi @Nagaraju
you can use this code:
!issue.get("customfield_10113").any{ it.isInGroup(issue.get("customfield_10112").name) }
I don't quite follow what you want to accomplish here. Can you please explain the "stage" properly? What happens? When does it take place? Who enters the value?
.
Hi @Nagaraju ,
sorry, I missed that in your initial request.
Try this:
def users = issue.get("customfield_10113")?.findAll{ it.isInGroup(issue.get("customfield_10112").name) }if (!users) return truereturn "Users ${users*.displayName.join(", ")} are already in group ${issue.get("customfield_10112").name}"
@David Fischer
Its worked. Thanks David. Cheers.
It looks like you're new here. Sign in or register to get started.