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:
Arun 2023-09-19 19:04:43 -07:00
parent 55b41d8fa6
commit dde84c27a3
No known key found for this signature in database

View file

@ -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")
}