I want to display department of a reporter in a ticket.
Each user is a member of a jira group in format e.g. "department-sales".
We have a lot of departments so I do not want to manually write each department an a automation rule and worry about keeping it up to date.
I'm thinking if it's possible to write a groovy script that would do something like:
If user is a member of group department-* then custom field Department = group name.
Or any other ideas how I could display single group membership in a ticket?
Without additional plugins.