Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to get the name of a group over the ID?

Khira Niemeier
Contributor
October 18, 2024

Hey,

I wanted to set up a filter and it seems one of our groups doesn't have the correct name in the data base (or some other reason, why it seems not to exist).

I found this article:

https://confluence.atlassian.com/jirakb/group-does-not-exist-error-when-adding-a-user-to-group-299570451.html

 

So my probem is a different one as mentioned here, as I just want to filter for this group. In my case it would be enough to know the name. It is not necessary to fix it.

So I learned you have these IDs at the end of the page URL (for users and also for groups).

.../groups/9ebcd482-7683-43d8-add6-5a54528030a4

Now my question is - with this ID - can I somehow find out the name of the group?



Because the filter seems only to accept the name and not the ID:


membersOf("SF - QA - Alpha Group - Confluence Einschraenkungen") 

and not 

membersOf("9ebcd482-7683-43d8-add6-5a54528030a4")


So is there a way to find out the name that is connected with the group ID? :) 

2 answers

1 accepted

6 votes
Answer accepted
Tuncay Senturk _Snapbytes_
Community Champion
October 18, 2024

Hi,

You can use REST service if you have the ID of the group

https://<your-domain>.atlassian.net/rest/api/3/group?groupId=9ebcd482-7683-43d8-add6-5a54528030a4

Please let me know if I am missing any point!

Khira Niemeier
Contributor
October 18, 2024

Hey @Tuncay Senturk _Snapbytes_ 

thank you so much. :)

It returned:

{"name":"SF - QA - Alpha Group - Confluence Einschraenkungen ","groupId":"9ebcd482-7683-43d8-add6-5a54528030a4","self":"https://p-games.atlassian.net/rest/api/3/group?groupId=9ebcd482-7683-4-add6-5a54528030a4","users":{"size":1,"items":[],"max-results":50,"start-index":0,"end-index":0},"expand":"users"}

So there really is a space behind the name of my group.

I was able to fix my filter.

This helped so much. Everything works now. :)
Thank you!

 

Tuncay Senturk _Snapbytes_
Community Champion
October 18, 2024

No problem!

I'm glad it worked!

Like Khira Niemeier likes this
0 votes
Khira Niemeier
Contributor
October 18, 2024

Additions to the Post:

The filter:
Screenshot (7).png

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events