Closed Dreamer1cc closed 6 years ago
Thanks for reporting this.
Is it a cloud server or on-premise?
It is on-premise server
Can you check the results of this REST API in your browser (you have to have logged on before opening the URL): https://jira.some-address/rest/api/latest/group/member?maxResults=25&groupname=WB_CBMT_Group
I have only a cloud server to test with - and there it works perfectly
<status>
<status-code>404</status-code>
<message>
null for uri: https://jira.some-address/rest/api/latest/group/member?maxResults=25&groupname=WB_CBMT_Group
</message>
</status>
in on-side i can get users by this link: https://jira.some-address/rest/api/2/group?groupname=WB_CBMT_Group&expand=users
And what result is: https://pastebin.com/DnCEye9s
In case it helps, the query @lipkau provided
https://jira.some-address/rest/api/latest/group/member?maxResults=25&groupname=WB_CBMT_Group
worked correctly on our on-premise server (I had to change the group name and server address).
Tested against Jira 7.5.0
So, maybe cause of it is my Jira Server version. It's too old?
yes. Your jira version (6.4.7) provides this information in a completely different way. v6.4.7: https://docs.atlassian.com/software/jira/docs/api/REST/6.4.7/#d2e5667 v7.12.0: https://docs.atlassian.com/software/jira/docs/api/REST/7.12.0/#api/2/group-getUsersFromGroup
I had several conversations regarding API changes from version to version. It's a very difficult topic - especially because Atlassian is so bad at writing APIs. In order to be 100% backward compatible, we would need to maintain a DB with the REST API and it's changes from version to version. For which we obviously (and unfortunately) do not have the manpower to do.
So, I am sorry to say, this action is not supported on your version of Jira with the latest version of JiraPS. I believe older versions of the module will work. Maybe a future version will be backward compatible - you can write a feature request for this function to be "smarter" - but at least for now, you have 3 options:
Install-Module PSJira
, which is on version 1.2.5.251)Ok, thank you, i think - it is not a bug. It is a feature, what this module "sometimes" working with my version
Description
Command Get-JiraGroupMember don't gives out put
Steps To Reproduce
Try to use command
Result is - nothing.
Trying to use step-by-step.
Get-JiraGroup -GroupName "WB_CBMT_Group"
Result is OKTrying to Debug:
Expected behavior
I expected to get members of this group like a Get-JiraUser
Your Environment
Atlassian JIRA Project Management Software v6.4.7