Good day good people,
I've created a custom scripted field that gets the Reporter's Groups value. My problem is though, that some reporters are in more than one group, like fx. "jira-users" and "jira-qa" and now it returns a list of groups, but I only want certain groups to be shown.
Is there a way I can only add certain groups to the field, fx. if the reporter is in mentioned groups above, that it only adds the "jira-qa" group to the custom field. Basically I want "jira-administrators", "jira-developers" and "jira-users" NOT to be shown, if that's easier.
You can define a list of groups that should be ignored and subtract this list from the list of groups of the reporter.
ignoredGroups = ['jira-users', 'jira-developers']
resultGroups = reporterGroups - ignoredGroups
This only works if you are working with the group names.
Hey Atlassian community, I help lead engineering at Sentry, an open-source error-tracking and monitoring tool that integrates with Jira. We started using Jira Software Cloud internally last year, a...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG