Skip to content

Commit c5de1d7

Browse files
committed
add spint filter and support no time range to jira/grooming command
1 parent 98fa13e commit c5de1d7

File tree

1 file changed

+21
-5
lines changed

1 file changed

+21
-5
lines changed

plugins/jira/commands/grooming.md

Lines changed: 21 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
---
22
description: Analyze new bugs and cards added over a time period and generate grooming meeting agenda
3-
argument-hint: [project-filter] [time-period] [--component component-name] [--label label-name]
3+
argument-hint: [project-filter] [time-period] [--component component-name] [--label label-name] [--sprint sprint-name]
44
---
55

66
## Name
77
jira:grooming
88

99
## Synopsis
1010
```
11-
/jira:grooming [project-filter] [time-period] [--component component-name] [--label label-name]
11+
/jira:grooming [project-filter] [time-period] [--component component-name] [--label label-name] [--sprint sprint-name]
1212
```
1313

1414
## Description
@@ -81,6 +81,16 @@ The `jira:grooming` command runs in three main phases:
8181
/jira:grooming OCPSTRAT last-week --component "Control Plane" --label "performance"
8282
```
8383

84+
7. **Filter by sprint**:
85+
```
86+
/jira:grooming OCPSTRAT "" --sprint "OTA 277"
87+
```
88+
89+
8. **Combine sprint with other filters**:
90+
```
91+
/jira:grooming OCPSTRAT "" --component "Cluster Version Operator" --sprint "OTA 277"
92+
```
93+
8494
## Output Format
8595

8696
### Grooming Meeting Agenda
@@ -136,10 +146,11 @@ The command outputs a ready-to-use Markdown document that can be copied into Con
136146
- `"OpenShift Virtualization,Red Hat OpenShift Control Planes"`
137147
Default: read from configuration file
138148

139-
- **$2 – time-period**
140-
Time range for issue collection.
141-
Options: `last-week` | `last-2-weeks` | `last-month` | `YYYY-MM-DD:YYYY-MM-DD`
149+
- **$2 – time-period**
150+
Time range for issue collection.
151+
Options: `last-week` | `last-2-weeks` | `last-month` | `YYYY-MM-DD:YYYY-MM-DD` | `""` (empty string for no time filter)
142152
Default: `last-week`
153+
Note: To query all issues without time filtering, pass an empty string `""`
143154

144155
- **--component** *(optional)*
145156
Filter by JIRA component (single or comma-separated).
@@ -153,6 +164,11 @@ The command outputs a ready-to-use Markdown document that can be copied into Con
153164
- `--label "technical-debt"`
154165
- `--label "performance,security"`
155166

167+
- **--sprint** *(optional)*
168+
Filter by JIRA sprint name.
169+
Examples:
170+
- `--sprint "OTA 277"`
171+
156172
## Return Value
157173
- **Markdown Report**: Ready-to-use grooming agenda with categorized issues and action items
158174

0 commit comments

Comments
 (0)