We would like to see on the ticket what groups the report of a ticket belongs to. What would be the best approach?
Tried looking at API but it doens't look available.
Hello,
You can use the Power Custom Fields add-on. It is a free add-on.
You can create a field with the following script:
return join(userGroups(reporter), ",");
Hi @Marc Jason Mutuc,
if you have Scriptrunner, maybe you can use a scripted field, that gets the information from the reporter and displays it.
Yes. I'm just having trouble getting it. Is it
userUtil.getGroupNamesForUser
?
Thanks! Although, free add-ons usually become paid add-ons or is discontinued. We have Script Runner.
But if you know how we can get that from API that would be awesome!
It would be like this:
import com.atlassian.jira.component.ComponentAccessorreturn ComponentAccessor.getGroupManager().getGroupsForUser(issue.getReporter())
I did that once, but do not have the script at hand. It was something like Alexey posted, so please just try his solution.
Thanks!
It looks like you're new here. Sign in or register to get started.