Forums

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

How to get a Confluence project's ID?

Peter Bunde Hansen
Contributor
July 15, 2017

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 votes
Peter Bunde Hansen
Contributor
July 17, 2017

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

Peter Bunde Hansen
Contributor
July 17, 2017

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

Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 17, 2017

Those are JIRA projects, not Confluence spaces.

Peter Bunde Hansen
Contributor
July 17, 2017

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

0 votes
Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 15, 2017

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")

Peter Bunde Hansen
Contributor
July 17, 2017

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

Peter Bunde Hansen
Contributor
July 17, 2017

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

 

BW Peter Bunde Hansen

Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 17, 2017

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.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events