def report_to_worklogs(report):
    """Convert watson report to Tempo (Jira) worklog dictionaries"""
    date = report['timespan']['to']
    worklogs = []
    for project in report['projects']:
        for tag in project['tags']:
            worklog = {'issue': project['name'], 'started': date, 'comment':
                tag['name'], 'timeSpent': int(tag['time'] // 60 or 1)}
            worklogs.append(worklog)
    report['projects'] = worklogs
    return report
