Skip to content

Commit

Permalink
fix edit
Browse files Browse the repository at this point in the history
  • Loading branch information
coryb committed Sep 18, 2017
1 parent a8eaa97 commit 4c6b36c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions jiracmd/edit.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ func CmdEdit(o *oreo.Client, globals *jiracli.GlobalOptions, opts *EditOptions)
if opts.Browse.Value {
return CmdBrowse(globals, opts.Issue)
}
return nil
}
results, err := jira.Search(o, globals.Endpoint.Value, opts)
if err != nil {
Expand All @@ -113,8 +114,9 @@ func CmdEdit(o *oreo.Client, globals *jiracli.GlobalOptions, opts *EditOptions)

issueUpdate := jiradata.IssueUpdate{}
input := templateInput{
Issue: issueData,
Meta: editMeta,
Issue: issueData,
Meta: editMeta,
Overrides: opts.Overrides,
}
err = jiracli.EditLoop(&opts.CommonOptions, &input, &issueUpdate, func() error {
return jira.EditIssue(o, globals.Endpoint.Value, issueData.Key, &issueUpdate)
Expand Down

0 comments on commit 4c6b36c

Please sign in to comment.