I like to clone a ticket but things are going wrong when the original reporter is no longer active.
I use the following to set the reporter:
reporter={'name': parent.fields.reporter.name}
The exception that is thrown = The reporter specified is not a user.
I can print the name of the reporter, confirming its existence in the DB:
print("Reporter=%s" % (parent.fields.reporter.name))
Which returns: Reporter=username.contractor
Could somebody please advise what I need to reference to set the reporter in case the user is no longer active?