Represents an item in the work item query hierarchy. This can be either a query or a folder.

interface QueryHierarchyItem {
    _links?: any;
    children?: QueryHierarchyItem[];
    clauses?: WorkItemQueryClause;
    columns?: WorkItemFieldReference[];
    createdBy?: IdentityReference;
    createdDate?: Date;
    filterOptions?: LinkQueryMode;
    hasChildren?: boolean;
    id?: string;
    isDeleted?: boolean;
    isFolder?: boolean;
    isInvalidSyntax?: boolean;
    isPublic?: boolean;
    lastExecutedBy?: IdentityReference;
    lastExecutedDate?: Date;
    lastModifiedBy?: IdentityReference;
    lastModifiedDate?: Date;
    linkClauses?: WorkItemQueryClause;
    name?: string;
    path?: string;
    queryRecursionOption?: QueryRecursionOption;
    queryType?: QueryType;
    sortColumns?: WorkItemQuerySortColumn[];
    sourceClauses?: WorkItemQueryClause;
    targetClauses?: WorkItemQueryClause;
    url?: string;
    wiql?: string;
}

Hierarchy (View Summary)

Properties

_links?: any

Link references to related REST resources.

children?: QueryHierarchyItem[]

The child query items inside a query folder.

The clauses for a flat query.

The columns of the query.

createdBy?: IdentityReference

The identity who created the query item.

createdDate?: Date

When the query item was created.

filterOptions?: LinkQueryMode

The link query mode.

hasChildren?: boolean

If this is a query folder, indicates if it contains any children.

id?: string

The id of the query item.

isDeleted?: boolean

Indicates if this query item is deleted. Setting this to false on a deleted query item will undelete it. Undeleting a query or folder will not bring back the permission changes that were previously applied to it.

isFolder?: boolean

Indicates if this is a query folder or a query.

isInvalidSyntax?: boolean

Indicates if the WIQL of this query is invalid. This could be due to invalid syntax or a no longer valid area/iteration path.

isPublic?: boolean

Indicates if this query item is public or private.

lastExecutedBy?: IdentityReference

The identity who last ran the query.

lastExecutedDate?: Date

When the query was last run.

lastModifiedBy?: IdentityReference

The identity who last modified the query item.

lastModifiedDate?: Date

When the query item was last modified.

linkClauses?: WorkItemQueryClause

The link query clause.

name?: string

The name of the query item.

path?: string

The path of the query item.

queryRecursionOption?: QueryRecursionOption

The recursion option for use in a tree query.

queryType?: QueryType

The type of query.

sortColumns?: WorkItemQuerySortColumn[]

The sort columns of the query.

sourceClauses?: WorkItemQueryClause

The source clauses in a tree or one-hop link query.

targetClauses?: WorkItemQueryClause

The target clauses in a tree or one-hop link query.

url?: string

REST URL for the resource.

wiql?: string

The WIQL text of the query