We have several Teams working on the same project.
As a CurrentUser,
when creating a new issue,
then I would like the Portfolio's cfTeam to be set to the Team I belong to.
So far I have been using a 'Custom Script Field' with the following plugin to retrieve current Issue's Team's name :
@PluginModule GeneralTeamService teamService
def customFieldManager = ComponentAccessor.customFieldManager
def cfTeam = customFieldManager.getCustomFieldObject(cfID// "Team" cfID = in your JIRA
String cfTeamV = issue.getCustomFieldValue(cfTeam)
CfTeamName = teamService.getTeam(cfTeamV.toInteger()).get().description.title
Is there a way I can use the same plugin to retrieve if CurrentUser() is assigned to a Team, and if yes what is the Team's name(s)?
Thanks for clues or solutions...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events