Add users to group automatically

Nikolai April 4, 2019

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

1 answer

1 accepted

4 votes
Answer accepted
Nikolai April 5, 2019

Solved via JEMH

Angélica Luz
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 16, 2019

Hi Nikolai

Thank you for sharing the resolution with us.
Hope you have a great day!

Regards,
Angélica

Suggest an answer

Log in or Sign up to answer