Questions for Confluence license has expired.

Please purchase a new license to continue using Questions for Confluence.

ADO - Impersonating a Proxy user

 
1
0
-1

Hello, I have a questions. Right now i have a integration between Jira and ADO. My questions is:


I am having problems with impersonating proxy user on ADO or Jira. I have a code that is only working when user commenting on and issue is a member of a project either on ADO or JIRA. If he is not in a project than a comment is done trough proxy user.


The code snippet in the doc (https://docs.idalko.com/exalate/display/ED/How+to+Impersonate+a+Comment) you provided defaults to the user set in the targetuser variable. All the comments doesn't matter which user is commenting is set to this default value. I need this to work only if the user comment is not recognized on ADO side. Is it possible? 


How would I change the code so it will fall back to some specific account instead of using a proxy user? My code below.


replica.addedComments.each { it.executor = nodeHelper.getUserByEmail(it.author?.email)}
replica.changedComments.each { it.executor = nodeHelper.getUserByEmail(it.updateAuthor?.email)}
issue.comments = commentHelper.mergeComments(issue, replica, { it })


    CommentAdd your comment...