def get_task_id(template):
    """
    Get task id from template input parameters.

    Parameters
    ----------
    template : dict

    Returns
    -------
    str
        Task id.
    """
    prefix = "vol-task-"
    suffix = "-name"
    for var in template["inputs"]["parameters"]:
        name = var["name"]
        if name.startswith(prefix):
            return name[len(prefix): len(name) - len(suffix)]