Commit 20358af
committed
[SPARK-57862][INFRA] Allow create_spark_jira.py to set the issue description
### What changes were proposed in this pull request?
This PR extends `dev/create_spark_jira.py` (and its helper `dev/spark_jira_utils.py`) so the JIRA description can be set at creation time:
- Add `-d`/`--description` and `--description-file` options (mutually exclusive) to `create_spark_jira.py`.
- Add a `description` parameter to `create_jira_issue` and use it in the issue payload (previously hardcoded to an empty string).
Backward compatible: without the new flags the behavior is unchanged.
### Why are the changes needed?
`create_jira_issue` hardcoded `"description": ""`, so tickets created via the script had no body and the description had to be added manually afterwards. When creating many issues at once (e.g. a batch of sub-tasks under an umbrella), populating the description at creation time is much more efficient.
### Does this PR introduce _any_ user-facing change?
No. This is a developer tooling change; without the new flags the behavior is unchanged.
### How was this patch tested?
Manually created JIRA sub-tasks with `--description-file` and verified the description on the resulting issues.
### Was this patch authored or co-authored using generative AI tooling?
Generated-by: Cursor1 parent eb3d853 commit 20358af
2 files changed
Lines changed: 31 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
41 | 51 | | |
42 | 52 | | |
43 | 53 | | |
| |||
60 | 70 | | |
61 | 71 | | |
62 | 72 | | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
63 | 84 | | |
64 | 85 | | |
65 | | - | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
66 | 92 | | |
67 | 93 | | |
68 | 94 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
81 | | - | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
82 | 84 | | |
83 | 85 | | |
84 | 86 | | |
85 | 87 | | |
86 | 88 | | |
87 | 89 | | |
88 | | - | |
| 90 | + | |
89 | 91 | | |
90 | 92 | | |
91 | 93 | | |
| |||
0 commit comments