By default, Exalate adds a comment, received from the other side on behalf of the proxy user.
The comment will look like the following:
You can change this behavior. For example, create the received comment with the original comment author.
The comment object has a field Executor which can be set to any user. This is how you can impersonate synced comments.
To send comments to the destination instance use the following script:
You can apply the received comment in different ways:
1. Assign original comment author if exists in the local system and create a new user if not found
This method works only for Jira Server.
- Check if the author of the comment exists in the local system by doing a user lookup
- If the author does not exist in the local JIRA, create a new user
- Assign this user as a comment executor
2. Assign original comment author if exists in the local system, use the proxy user if not found
This method works for Jira Server and Jira Cloud.
- Change the comment executor from the proxy user to the original comment author
- If the author does not exist in the local JIRA, use the proxy user as an author
The first comment was created by the proxy user, while the second comment was impersonated and the local administrator is the comment executor.
Check user fields sync for more details.