Hello.
My goal is to automatically add newcreated users to specific group.
How it works:
1. New client writes an email to create issue. For example from 123@qwerty.com
2. JEMH addon creates new user(customer)
3. I have premade customer group "jira-customer-qwerty" and i want to add user to this group and not other (for example jira-customer-asdfg). All group names are unique.
In another words i want to parse email's domain, find jira group with name like %domain% and add user to that group/
As far as I understood i can use Automation or PostFunction script. And also i have customer's email in customfield.
Can someone help me with this script? I think https://community.atlassian.com/t5/Marketplace-Apps-questions/Groovy-Script-to-add-User-to-JIRA-group/qaq-p/685773 is somewhere near this, instead of i need to dynamicly find group for user