Forums

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

Get Jira project leaders and administrators on a confluence page

Arthur S
Contributor
October 5, 2021

Hello everyone,

 

In our company, most of the Jira projects are private. As the administrator of our Jira and Confluence tools, I am contacted to give Jira project access but it should be under Jira project administrator or project leader to perform this action. The problem is, people don't know who to contact to request access as they don't know who are the admins/leaders of the projects.

 

I was thinking to use the rest api to export a list of the admins/leaders on a confluence page which will be public to all of our users. 

Do you know if it's possible and would you have any idea how to do it ? I don't ask for the solution but just road to take :)

 

Thanks in advance,

Arthur

1 answer

0 votes
Thomas Deiler
Community Champion
October 15, 2021

Dear @Arthur S ,

welcome to the community!

It is possible with the REST APIs of Jira and Confluence

Get the projects from Jira

GET /api/2/project?expand=lead

You can extract the details from the JSON response.

Update a confluence page

PUT /rest/api/content/{id}

JSON Payload:

{
"version": {
"number": 2
},
"title": "My new title",
"type": "page",
"body": {
"storage": {
"value": "<p>New page data.</p>",
"representation": "storage"
}
}
}

I recommend to create the overview page manually. Then read it with

GET /rest/api/content/{id}

so that you understand the format of "value". Now you can add the information from Jira.

Best you do this with a PHP or Python script. This can be called with cron regularly to keep the overview page up to date.

Its also useful to have a REST extension for the browser to experiment.

So long

Thomas D

Arthur S
Contributor
October 26, 2021

Hi Thomas, 

 

Thank you for this answer. I will test that as soon as I can and I will then give you a feedback.

 

Thanks,

BR,

Arthur

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
TAGS
AUG Leaders

Atlassian Community Events