def apply_tasks_to_issue(self, issue, tasks, issue_body=None):
issue_body = issue_body or issue.body<EOL>task_numbers = transport.format_task_numbers_with_links(tasks)<EOL>if task_numbers:<EOL><INDENT>new_body = transport.ASANA_SECTION_RE.sub('<STR_LIT>', issue_body)<EOL>new_body = new_body + "<STR_LIT>" % task_numbers<EOL>transport.issue_edit(issue,<EOL>body=new_body)<EOL>return new_body<EOL><DEDENT>return issue_body<EOL>
Applies task numbers to an issue.