def METHOD_NAME(self, task: Dict) -> DataIssue:
    custom_fields = {f['gid']: f for f in task['custom_fields']}
    priority_field = custom_fields[self.priority_field_gid]
    priority = None
    if priority_field.get('enum_value'):
        priority = Priority.from_level(priority_field['enum_value']['name'])
    else:
        priority = Priority.P3
    return DataIssue(
        issue_key=task['gid'],
        title=task['name'],
        url=self._task_url(task['gid']),
        status='closed' if task['completed'] else 'open',
        priority=priority,
    )