How to get a Confluence project's ID?

Fellow sufferers!

I need to know the ID of a particular project in Confluence (I'll use the ID to make REST queries). Where in the UI is the ID displayed?

 

BW Peter Bunde ´Hansen

2 answers

0 vote

The Confluence REST API leans on the space key, not id, and that's visible everywhere, in the name, the urls and so-on  (I'm assuming you mean "space", as Confluence doesn't have "projects")

Where is space ID.JPGHi Nic

 

Thanks for your reply. Yes, I mean space. I still can only find the title - not something that looks like an ID. Could you provide a screen cut-out to guide me in

..how to find it, or mark it in the cut-out?

 

BW Peter Bunde Hansen

Ok, the new layout on Cloud doesn't expose the space key as much.  You could look at the url you are on when you're looking at a page, or look at the list of spaces where the keys are listed.

By the way, in the REST documentation, the ID is mentioned as <projectIdOrKey>. 

This gives me the ID: https://csc-ejendom.atlassian.net/secure/BrowseProjects.jspa?selectedCategory=all&selectedProjectType=all

 

But I get an error message:

{"errorMessages":["You cannot edit the configuration of this project."],"errors":{}}

For this URL:

https://csc-ejendom.atlassian.net/rest/api/2/project/YR/role

From the documentation, it seems I do not need admin rights to query these roles; also why is the reponse mentioning '...edit...' when clearly I am not trying to edit something?

 

BW Peter Bunde Hansen

Those are JIRA projects, not Confluence spaces.

What I am trying to achieve is this:

In Confluence, I have a space with a number of pages. A subset of the members of the space are 'Reviewer'. I than need to query via my REST API who the Reviewer's are.  

Please propose a way to do that.

)If the member can have the role irt particular pages within the space, that would be great, or if it is only possible to do that on space level, that is fine as well.)

BW Peter Bunde Hansen

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

3,305 views 14 20
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot