Driveby unrelated update: when both field ID and project ID are missing, specify that it's necessary to update the field value
This commit is contained in:
parent
55b41d8fa6
commit
dde84c27a3
1 changed files with 3 additions and 0 deletions
|
|
@ -173,6 +173,9 @@ func runEditItem(config editItemConfig) error {
|
|||
|
||||
// update item values
|
||||
if config.opts.text != "" || config.opts.number != 0 || config.opts.date != "" || config.opts.singleSelectOptionID != "" || config.opts.iterationID != "" {
|
||||
if config.opts.fieldID == "" && config.opts.projectID == "" {
|
||||
return cmdutil.FlagErrorf("field-id and project-id must be provided")
|
||||
}
|
||||
if config.opts.fieldID == "" {
|
||||
return cmdutil.FlagErrorf("field-id must be provided")
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue