I have tried below code, it gives me exception.
Issue issue = issueEvent.getIssue();
CustomField customField = customFieldManager.getCustomFieldObject("customfield_12200");
ModifiedValue mVal = new ModifiedValue(issue.getCustomFieldValue(customField), issueEvent.getIssue().getAssignee());
customField.updateValue(null, issue, mVal, new DefaultIssueChangeHolder());
It throws exception in
public void createValue(CustomField field, Issue issue, @Nonnull T value) {
this.customFieldValuePersister.createValues(field, issue.getId(), this.getDatabaseType(), Lists.newArrayList(new Object[]{this.getDbValueFromObject(value)}));
}
Hi Aayush Mohanka and welcome,
Do you mind to share with us the whole stacktrace of the error to see if anyone here can help you with your problem?
Usually, errors when setting up a new value within a field are caused by permission issues (i,e. the field isnt editable at all or the user who is performing the action hasn't the necessary permission for do that) or either you are setting up an incorrect value type on that fields (i,e, the field expects an ApplicationUser.class but you are updating the field with just the username property which is an String.class or things like that)
Best Regards
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.