Open grryf opened 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.
I had to use '-GET' here. It works now. Maybe it should use '-GET' as default?
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.