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?
Hi @Caleb Ellenburg ,
I think you are using a wrong rest api. Try using the following Rest https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-search/#api-rest-api-3-search-get that allows you to retrieve all issue based on a jql.
Hope this helps,
Fabio
I tried using the rest api v3 but still receive the same error message. Any other ideas?
Thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Please, verify the encoding of your JQL. Special characters and/or whitespace should be encoded in order to work correctly.
Ciao,
Fabio
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.