Permission error when syncing between two instances. Proxy User has permissions

Originally asked by André Leroy-Beaulieu Castro on 27 March 2020 (original question)


Error:

com.exalate.api.node.exception.IssueNotEditableException: Issue TEST-123 cannot be updated by user exalateuser. Please check permissions.

This occurs even if the proxy user has all the necessary permissions. What could be the cause?

Thanks,


Answer by Juan Grases on 27 March 2020

This message indicates that Exalate couldn’t update the issue. This might be due permission problems but more often is about the issue being in a status (like closed) that doesn’t allow to update the issue (only add comments). From the incoming script, you can avoid this error by doing:

//Incoming sync, place this on the top of your script

if(!firstSync && nodeHelper.isIssueEditable(issue)) {
	issue.comments = commentHelper.mergeComments(issue,replica)
	return;
}

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.