You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
I'm using JIRA Software v8.4.0
The multi-select I'm trying to get the selections from is in a tab of a screen "Required Reviewers".
I've read several posts, however, many are for JIRA version prior to v7's depreciated classes.
I've tried to run the following code in the Script Runner console, but there are problems.
//def issue = event.issue as Issue
// Get a pointer to the current logged in user
def CurrentUser = ComponentAccessor.getJiraAuthenticationContext().getLoggedInUser()
def customFieldManager = ComponentAccessor.getCustomFieldManager()
def commentManager = ComponentAccessor.commentManager
def cField = customFieldManager.getCustomFieldObjectByName("Required Reviewers")
//def cFieldValue = issue.getCustomFieldValue(cField).toString()
This code would work right up until the last line. The custom field will not return a string, it will return a list (collection/array etc) of user objects.