mirror of
https://github.com/Threnklyn/jira.git
synced 2026-06-07 13:33:32 +02:00
fix edit
This commit is contained in:
@@ -100,6 +100,7 @@ func CmdEdit(o *oreo.Client, globals *jiracli.GlobalOptions, opts *EditOptions)
|
|||||||
if opts.Browse.Value {
|
if opts.Browse.Value {
|
||||||
return CmdBrowse(globals, opts.Issue)
|
return CmdBrowse(globals, opts.Issue)
|
||||||
}
|
}
|
||||||
|
return nil
|
||||||
}
|
}
|
||||||
results, err := jira.Search(o, globals.Endpoint.Value, opts)
|
results, err := jira.Search(o, globals.Endpoint.Value, opts)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
@@ -115,6 +116,7 @@ func CmdEdit(o *oreo.Client, globals *jiracli.GlobalOptions, opts *EditOptions)
|
|||||||
input := templateInput{
|
input := templateInput{
|
||||||
Issue: issueData,
|
Issue: issueData,
|
||||||
Meta: editMeta,
|
Meta: editMeta,
|
||||||
|
Overrides: opts.Overrides,
|
||||||
}
|
}
|
||||||
err = jiracli.EditLoop(&opts.CommonOptions, &input, &issueUpdate, func() error {
|
err = jiracli.EditLoop(&opts.CommonOptions, &input, &issueUpdate, func() error {
|
||||||
return jira.EditIssue(o, globals.Endpoint.Value, issueData.Key, &issueUpdate)
|
return jira.EditIssue(o, globals.Endpoint.Value, issueData.Key, &issueUpdate)
|
||||||
|
|||||||
Reference in New Issue
Block a user