New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
get-jirauser is failing against cloud instance #465
Comments
Any update on this? |
I am seeing the same thing - and it seems it's because it's using v2 of the API in the module? How to replicate:
|
There is an issue in lines 2736 and 2737 in the JiraPS.psm1 file in version 2.14.6 of the JiraPS PowerShell Module. $searchResourceUri = "$server/rest/api/2/user/search?username={0}"
$exactResourceUri = "$server/rest/api/2/user?username={0}" According to the Jira REST API documentation, the "username" query parameter is deprecated. In this section of the documentation, they say you can use the query parameter named "query" to match against the displayName and emailAddress user attributes. In my install of the JiraPS module, I have modified my JiraPS.psm1 file to use the query parameter, "query". $searchResourceUri = "$server/rest/api/2/user/search?query={0}"
$exactResourceUri = "$server/rest/api/2/user?query={0}" |
Description
While connected to our Jira Cloud instance, I'm unable to get-jirauser, it returns an error. Other commands, add-jiraissue, etc, have been verified as wworking
Steps To Reproduce
Expected behavior
I've never been able to use this, I would assume it would return usable key pairs
Your Environment
We are using Jira Cloud
Possible Solution
unknown
The text was updated successfully, but these errors were encountered: