I am currently trying to fetch a list of all issues/tasks in a project using Powershell. The problem I'm running into is I receive the following error every time:
Invoke-JiraMethod : The value 'project name' does not exist for the field 'project'.
I've confirmed the account being used to access (my own) has the right permissions - I'm a Site Admin, as well as the creator and admin for this specific project. My code is below:
$user = [System.Text.Encoding]::UTF8.GetBytes("admin account@domain.com:jira API token"
$headers = @{Authorization = "Basic" + [System.Convert]::ToBase64String($user)}
Invoke-RestMethod -Uri "https://companyname.atlassian.net/rest/api/2/jira/core/projects/" -Method GET
$weekly = Get-JiraIssue -Query 'project = "project name"'
Any thoughts on what I'm missing?