You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.
View groupJoin the community to find out what other Atlassian users are discussing, debating and creating.
Hello,
I'm sure this is relatively simple, but I've developed an event listener that sends an email when a user is added to a user group, however I want to limit the scope of this listener to only a specific group or set of groups. What would be an example condition that would allow me to define that?
Thanks!
Oddly enough, after taking a break from assembling the solution I was working on, I realized the simplicity of the answer.
event.groupName == 'groupname'
This is all that was needed in the 'Configuration and Condition' field to limit the event listener to only users added to that group.
Hopefully if someone else runs into this issue it helps.
Thanks
In your code you can fetch the group name of a user by something like this.
ComponentAccessor.getGroupManager().getGroupsForUser("user")
I hope it helps.
Ravi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey Ravi,
Appreciate the quick response. The case here is it's not associated with a specific user. The listener is notifying us that a new user was added to a group using the GroupMembershipCreatedEvent. I need to limit the scope to only send a notification if the group equals a specific user group(s).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello everyone, I am a product manager in the Jira Cloud team focused on making sure our customers have a delightful experience using our products. Towards that goal, one of the areas which is extr...
Connect with like-minded Atlassian users at free events near you!
Find an eventConnect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.
Host an eventYou're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.