1
0
-1

Hello,


We are syncing issues between two Jira Instances. 


Users will have assignee permissions on Jira instance A, but may or may not have assignee permissions on Jira instance B


I have used the code snippet from: https://docs.exalate.com/docs/isuserassignable-49152291


def assignee = nodeHelper.getUserByEmail(replica.assignee?.email)
if(nodeHelper.isUserAssignable(issue.projectKey, assignee)){
    issue.assignee = assignee
}else{
    issue.assignee = nodeHelper.getUserByEmail("default@admin.com")
}


However, when attempting to sync an issue where the user does not have assignee permissions on Jira Instance B, we are getting the following error:


Could not update issue `XXX-1234` with id `71551`: Field assignee: User '<userID>' cannot be assigned issues.. Check the documentation for more details.


Anyone else ever come across this?


Cheers,

Mike

    CommentAdd your comment...