Forums

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

Not able to set the assigned group with the script

udayasuriyan keerthika May 19, 2020

I tried using both this method to set the value in assigned group and assignee:
issue.setCustomFieldValue(assignedGroup_cField, assignedGroup)

issue.setAssignee(defaultAssignee)
or
def changeHolder = new DefaultIssueChangeHolder()
assignedGroup_cField.updateValue(null,issue,new ModifiedValue(issue.getCustomFieldValue(assignedGroup_cField), assignedGroup), changeHolder)In history it is showing the correct value of assigned group, even in log it is showing the correct value but in the issue the assigned group is not updated.

1 answer

0 votes
Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 20, 2020

You'll need to show us all the relevant code, not just the bit that tries to write the variables to the issue.  Show us the parts where you define the variables, reindex the issue, where the code is running and what the field type is.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events