ender2021 / PowerJira

A PowerShell wrapper for the Jira REST API
MIT License
5 stars 1 forks source link

JiraSearchIssues - error: (400) Bad Request #3

Open grryf opened 4 years ago

grryf commented 4 years ago

Works: https://tracker.company.com/jira/rest/api/2/search?jql=project%20%3D%20PROJECT $JiraIssue = Invoke-JiraGetIssue -JiraContext $c -Key 'INV-20000'

Fails: $JiraSearchIssues = Invoke-JiraSearchIssues -JiraContext $c -Jql "project=PROJECT" with error: Invoke-RestMethod : The remote server returned an error: (400) Bad Request.

400 - Returned if the JQL query is invalid.

grryf commented 4 years ago

I had to use '-GET' here. It works now. Maybe it should use '-GET' as default?