Skip to content

Commit e926e0b

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

File tree

3 files changed

+24
-8
lines changed

3 files changed

+24
-8
lines changed

PLUGINS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ A plugin to automate tasks with Jira
7676
**Commands:**
7777
- **`/jira:create` `<type> [project-key] <summary> [--component <name>] [--version <version>] [--parent <key>]`** - Create Jira issues (story, epic, feature, task, bug) with proper formatting
7878
- **`/jira:generate-test-plan` `[JIRA issue key] [GitHub PR URLs]`** - Generate test steps for a JIRA issue
79-
- **`/jira:grooming` `[project-filter] [time-period] [--component component-name] [--label label-name]`** - Analyze new bugs and cards added over a time period and generate grooming meeting agenda
79+
- **`/jira:grooming` `[project-filter] [time-period] [--component component-name] [--label label-name] [--sprint sprint-name]`** - Analyze new bugs and cards added over a time period and generate grooming meeting agenda
8080
- **`/jira:solve`** - Analyze a JIRA issue and create a pull request to solve it.
8181
- **`/jira:status-rollup` `issue-id [--start-date YYYY-MM-DD] [--end-date YYYY-MM-DD]`** - Generate a status rollup comment for any JIRA issue based on all child issues and a given date range
8282

docs/data.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@
7676
{
7777
"name": "grooming",
7878
"description": "Analyze new bugs and cards added over a time period and generate grooming meeting agenda",
79-
"synopsis": "/jira:grooming [project-filter] [time-period] [--component component-name] [--label label-name]",
80-
"argument_hint": "[project-filter] [time-period] [--component component-name] [--label label-name]"
79+
"synopsis": "/jira:grooming [project-filter] [time-period] [--component component-name] [--label label-name] [--sprint sprint-name]",
80+
"argument_hint": "[project-filter] [time-period] [--component component-name] [--label label-name] [--sprint sprint-name]"
8181
},
8282
{
8383
"name": "solve",

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)