Questions for Confluence license has expired.

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

A wrong user was assigned then un-assigned, but the error is not going away

 
2
1
0

The sync breaks even though this wrong user no longer exists. Initially, this user was not part of the project, this is where the error came from.

    CommentAdd your comment...

    2 answers

    1.  
      3
      2
      1

      Hi Irina,


      To give a bit more context, your original error was:


      Could not update issue `10,104`: Field assignee: User 'alex' cannot be assigned issues..


      and to make sure this doesn't happen, you can add this logic to your Incoming processor:


      def remoteAssignee = nodeHelper.getUserByEmail(replica.assignee?.email)
      if (nodeHelper.isUserAssignable(issue.projectKey, remoteAssignee)) {
        issue.assignee = remoteAssignee
      } else {
        issue.assignee = null 
      }


      This will make sure the assignee is set only if it's assignable in the destination project, if it isn't it will stay unassigned.


      Thanks,


      André

        CommentAdd your comment...
      1.  
        1
        0
        -1

        Hi Exalate user

        Can you provide some more details.


        • What are you trying to implement
        • What is your outgoing and incoming sync processor (or are you using a visual connection)
        • What is the error you encounter


          CommentAdd your comment...