def tasks_get_filtered(taskid_list, module):
    """
    Get tasks information from a list of tasks.

    Parameters
    ----------
    taskid_list : list
        List of task IDs to get.
    module : AnsibleModule
        Ansible module.

    Returns
    -------
    list
        List of tasks from CVP.
    """
    tasks = module.client.api.get_tasks_by_status("Pending")
    task_list = list()
    for task in tasks:
        if task["workOrderId"] in taskid_list:
            task_list.append(task)
    return task_list