I want to set 'Component' based on the Reporter's security group membership.
For example:
Employees are in Japan, Guam, and Hawaii.
If an employee from Japan submits a JIRA Service Desk ticket, I'd like to set the 'Component' to 'Japan.' Similar logic applies for employees from Guam and Hawaii. If someone from outside of Japan, Guam, and Hawaii submits a ticket, I'd like to leave the 'Component' blank.
I have ScriptRunner installed but don't know how to write the script.
We are using the latest JIRA enterprise release in Data Center.
Can someone please help?
Thank you!