jira-node / node-jira-client

A Node.js wrapper for the Jira REST API
https://jira-node.github.io/
MIT License
450 stars 169 forks source link

400 error when query fields are undefined #317

Open Arnoid31 opened 3 years ago

Arnoid31 commented 3 years ago

When using await getEpics(boardId, 0, 50); I get the following error from Jira : 400 - {"errorMessages":["Illegal boolean value: , for param. done. Allowed values are True and False."] QueryParams are : { startAt: 0, maxResults: 50, done: undefined } I guess done: undefined is still interpreted by Jira as non-boolean value. I will do a PR concerning this issue.

TwioZz commented 3 years ago

I've got the same problem, keep me up when PR is ready. For now, i just put a false