I have two issues: Employee and Access. They are linked to each other.
When Access.Status = Done, I get the linked issue with the Employee issue type and store it in the employeeTask variable. Also, I need to update one Employee task custom field that I do by using the following code:
et_specialAccessRightsField.updateValue(null, employeeTask, new ModifiedValue(employeeTask.getCustomFieldValue(et_specialAccessRightsField), specialARValues), new DefaultIssueChangeHolder());
issueManager.updateIssue(currentUser, employeeTask, EventDispatchOption.ISSUE_UPDATED, false)
I assume that the last string help to fire the Issue Updated event.
However, as I can see the event isn't called, because my other code (listener) doesn't work.
It's odd, however, if I change the field manually, the event will be fired and the listener will be work. If I changed this field from another issue, the updated issue event doesn't work =(
Because "et_specialAccessRightsField.updateValue(...)" already updates issue, second row seems to do nothing hence firing no event. If you use
employeeTask.setCustomFieldValue(et_specialAccessRightsField, specialARValues)
instead of your first row I think it should work
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.