Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setting JSONNull value for a Numeric field (non-mandatory) results in error #188

Closed
vivganes opened this issue Nov 17, 2016 · 1 comment
Closed

Comments

@vivganes
Copy link
Contributor

I am trying to execute this Java Statement

issue.update().field(someNumericNonMandatoryField, value).execute();

If the value is a JSONNull, then I get an exception that numeric value is expected.

This should not give any error because the JIRA UI is letting me to set empty value for the field.

This could be traced back to code in Field.java toJson() method.

I am willing to submit a pull request for the same.

vivganes added a commit to vivganes/jira-client that referenced this issue Nov 21, 2016
@vivganes
Copy link
Contributor Author

vivganes commented Nov 28, 2016

@rcarz I have raised a pull request with commit : vivganes@7ea6f3b in PR - #189

Will you be able to check if it is okay? If yes, I would request for a release so that I can remove the "Manual Action Needed" message in my java utility.

In my utility, currently, manually, one has to reset the values to null when the job fails with the "Manual action needed" message. This manual effort is not scalable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant