@@ -19,6 +19,7 @@ type CreateOptions struct {
19
19
jiracli.CommonOptions `yaml:",inline" json:",inline" figtree:",inline"`
20
20
jiradata.IssueUpdate `yaml:",inline" json:",inline" figtree:",inline"`
21
21
Project string `yaml:"project,omitempty" json:"project,omitempty"`
22
+ Summary string `yaml:"summary,omitempty" json:"summary`
22
23
IssueType string `yaml:"issuetype,omitempty" json:"issuetype,omitempty"`
23
24
Overrides map [string ]string `yaml:"overrides,omitempty" json:"overrides,omitempty"`
24
25
SaveFile string `yaml:"savefile,omitempty" json:"savefile,omitempty"`
@@ -51,6 +52,7 @@ func CmdCreateUsage(cmd *kingpin.CmdClause, opts *CreateOptions) error {
51
52
jiracli .TemplateUsage (cmd , & opts .CommonOptions )
52
53
cmd .Flag ("noedit" , "Disable opening the editor" ).SetValue (& opts .SkipEditing )
53
54
cmd .Flag ("project" , "project to create issue in" ).Short ('p' ).StringVar (& opts .Project )
55
+ cmd .Flag ("summary" , "Summary of the issue" ).Short ('s' ).StringVar (& opts .Summary )
54
56
cmd .Flag ("issuetype" , "issuetype in to create" ).Short ('i' ).StringVar (& opts .IssueType )
55
57
cmd .Flag ("comment" , "Comment message for issue" ).Short ('m' ).PreAction (func (ctx * kingpin.ParseContext ) error {
56
58
opts .Overrides ["comment" ] = jiracli .FlagValue (ctx , "comment" )
@@ -91,6 +93,9 @@ func CmdCreate(o *oreo.Client, globals *jiracli.GlobalOptions, opts *CreateOptio
91
93
Overrides : opts .Overrides ,
92
94
}
93
95
input .Overrides ["project" ] = opts .Project
96
+ if opts .Summary != "" {
97
+ input .Overrides ["summary" ] = opts .Summary
98
+ }
94
99
input .Overrides ["issuetype" ] = opts .IssueType
95
100
input .Overrides ["login" ] = globals .Login .Value
96
101
0 commit comments