def task()

in migration/src/jira2github_import.py [0:0]


    def task(num):
        logger = logging.getLogger(name)
        try:
            # if you have attachment files in $JIRA_ATTACHMENTS_DIRPATH, text attachments'data may be embedded in issue comments.
            att_dir = Path(JIRA_ATTACHMENTS_DIRPATH).joinpath(jira_issue_id(num)) if JIRA_ATTACHMENTS_DIRPATH else None
            convert_issue(num, dump_dir, output_dir, account_map, jira_users, att_base_url, att_dir, logger)
        except Exception as e:
            logger.error(traceback.format_exc(limit=100))
            logger.error(f"Failed to convert Jira issue. An error '{str(e)}' occurred; skipped {jira_issue_id(num)}.")