def get_task_status(task: dict):
    """Gets the current status from task."""
    status = {"resolved": False, "resolved_at": "", "resolved_by": ""}
    if task.get("resolved"):
        for r in task["replies"]:
            if r.get("action") == "resolve":
                status["resolved_by"] = r["author"]["displayName"]
                status["resolved_at"] = r["createdTime"]
                return status