Author mail is not synced for comments

Originally asked by Alexander Lukashov on 15 March 2021 (original question)


Hi

According to https://docs.idalko.com/exalate/display/ED/How+to+Impersonate+a+Comment Exalate supposed to pass Author mail for comments

However we noticed that it does pass key only

Our configuration is integration of ServiceNow and Jira Cloud

When a comment is created on SNOW end, we can use author.key to get user on Jira Cloud end assuming key is always mail

However, when a comment is created on Jira Cloud end exalate passes the following object

[BasicHubComment{@body=`from Jira`, @id=`null`, @remoteId=`10846`, @author=`{ @key : 557058:fb7725f1-1734-4344-9f23-340c93a2836b}`, @created=`2021-03-15 09:12:55.692`, @updateAuthor=`{ @key : 557058:fb7725f1-1734-4344-9f23-340c93a2836b}`, @updated=`2021-03-15 09:12:55.692`, @group=`null`, @role=`null`, @internal= `false`, @executor= `null`}] 

Which does contain only user guid in author.key thus we can’t find corresponding user in SNOW end

Is this a bug and author.mail is missing or some changes which require updating the article https://docs.idalko.com/exalate/display/ED/How+to+Impersonate+a+Comment


Comments:

Serhiy Onyshchenko commented on 15 March 2021

Hello, Alexander Lukashov, might I ask you to check if this user “557058:fb7725f1-1734-4344-9f23-340c93a2836b” had made their email address public in their profile?

Alexander Lukashov commented on 15 March 2021

I changed mail to be visible by anyone

Result is the same. Only key is included into the object. There is no mail included

Answer by Alexander Lukashov on 16 March 2021

Disregard, the toString method on BasicHubComment.author prints only key for some reason

email and displayName are there regardless of profile settings


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