Changing value of user browser type custom field using groovy

Sumit Kumar
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.
June 24, 2014

I need to change value of userbrowser type custom field using groovy , can someone please suggest a method/code to do that ?

Thanks,

Sumit

1 answer

1 accepted

0 votes
Answer accepted
Sumit Kumar
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.
June 24, 2014

This can be resolved by converting com.atlassian.jira.user.BridgedDirectoryUser to

DelegatingApplicationUser delegatingApplicationUser = new DelegatingApplicationUser("${bridgedDirectoryUser .getDisplayName()}",bridgedDirectoryUser)

and then

customField.updateValue(null, issue, new ModifiedValue(customFieldValue, delegatingApplicationUser), issueChangeHolder)

Suggest an answer

Log in or Sign up to answer