# Groups

### Creating Groups

Groups organize items defined by a set of [filters](/wdid/advanced/filters.md).  We can create them with the `group` command and passing a name and set of filters:

```
$ wdid group -n "my group name" -f "status=done,time=week,tag=@josler"
```

Both `--name` and `--filter` are required.

These groups can be used to provide saved sets of filters for easy use.

### List Items By Group

You can use groups to list items; either as part of a larger filter set, or just on their own.

```
# show all items in the group
$ wdid -g "my group name"

# filter using a group and just this week
$ wdid "group=my group name,time=week"
```

### **Listing Groups**

List groups via the `group-ls` command.

```
$ wdid group-ls
prs: "tag=#pr,time=this week"
o11y: "tag=#o11y,status!=done"
```

### Removing Groups

Groups can be deleted:

```
$ wdid group-rm --name prs
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://j-osler.gitbook.io/wdid/advanced/groups.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
