AtlassianPS / JiraPS

PowerShell module to interact with Atlassian JIRA
https://AtlassianPS.org/module/JiraPS
MIT License
321 stars 131 forks source link

Suggestion: `Get-JiraIssue`/`Get-JiraFilter` — Provide more meaningful error when Filter fails and/or input validation #467

Open datorr2 opened 1 year ago

datorr2 commented 1 year ago

Running Get-JiraIssue or Get-JiraFilter and putting a JQL query in for -Filter parameter causes the following error:

Resolve-ErrorWebResponse: Method invocation failed because [System.Net.Http.HttpResponseMessage] does not contain a method named 'GetResponseStream'.

This error doesn't really explain what the user is doing wrong, and it might be better to build some input validation around the $Filter parameter (since it should always be a number).

Suggestion(s):