jira-cli
jira-cli copied to clipboard
feat: Raise an error when invalid custom field is specified.
Raise an error when an invalid custom field is specified.
Currently, the invalid custom field is silently ignored which creates a wrong impressing that everything is OK.
The CLI behavior is same as this and I am not sure if we need to be strict on the CLI side. Also, this would be sort of a breaking change IMO. Thoughts?
The problem is that when you (as a user) have incorrectly set Custom fields in the configuration file, you have no idea, what is happening because the invalid custom field is silently ignored.
That is confusing and creates frustration when using the Custom fields feature. It took me several tries and several minutes to figure out what was wrong in my case.
At the very least there should be a warning. You are passing an argument and expect it to have an effect. There's none.
I would not consider it a breaking change when the CLI newly checks this. It merely points out an error situation that was previously wrongly ignored.
I would not consider it a breaking change when the CLI newly checks this. It merely points out an error situation that was previously wrongly ignored.
I think we should start with the warning and fail in future release. I would suggest the following:
- Add a warning when running the command so the users of this feature are aware of the incoming change.
- Do a new minor release with this change in place.
- A version after that will include the patch to fail for invalid custom field.