def process_worklog(source, target, issue):
    worklog = source.get_worklog(issue['key'])
    if worklog:
        for w in worklog['worklogs']:
            create_user(target, w['author'])
            work_item = WorkItem()
            work_item.authorLogin = w['author']['name']
            work_item.date = to_unix_date(w['started'], truncate=True)
            work_item.description = w['comment']
            work_item.duration = int(int(w['timeSpentSeconds']) / 60)
            target.createWorkItem(issue['key'], work_item)