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

Suggest an answer

Log in or Sign up to answer