The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Set Custom Field Value Single group picker [Script Runner]

Stefano Borioni
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 20, 2020

Hi all, 

in this Post-Function I'm trying to set the field called "Group Assign" with the same group that is inside the "implementors Team" field, the fields are both "group picker (single group)"

def cfImplTeam = ComponentAccessor.getCustomFieldManager().getCustomFieldObjectsByName("Implementors Team").first()
def cfGroupAss = ComponentAccessor.getCustomFieldManager().getCustomFieldObjectsByName("Group Assign").first()


def cfImplTeamValue = issue.getCustomFieldValue(cfImplTeam)
issue.setCustomFieldValue(cfGroupAss, cfImplTeamValue)

Can anyone tell me where I'm doing wrong?

Thanks in advance.

0 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.