Connecting Jira Project with Confluence Space using REST API

Marc-André Lanciault September 7, 2022

Hi, we are using the Jira and Confluence API to automate everything when we land a new client or project. 

 

One thing I was not able to figure out is how to link a a Jira Project's Pages feature to the related Confluence space:

Markup on 2022-09-07 at 07_14_52.png

Anyone knows how to achieve this ? 

Thanks

3 answers

0 votes
Gianluca Pisati
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 2, 2023

just intercept the request with chrome developer tools.

you need a POST to https://vidiemme.atlassian.net/gateway/api/graphql with a payload similar to this

{"query":"\n mutation createConfluenceRelationship($fromAri: ID!, $toAri: ID!) {\n devOps {\n ariGraph {\n createRelationships(\n input: {relationships: {type: \"project-documentation-entity\", from: $fromAri, to: $toAri}}\n ) {\n success\n errors {\n message\n }\n }\n }\n }\n }\n","variables":{"fromAri":"ari:cloud:jira:cbc1f876-8a97-45a5-b760-4c89e306bcd3:project/[projectID]","toAri":"ari:cloud:confluence:cbc1f876-8a97-45a5-b760-4c89e306bcd3:space/[spaceID]"}}

0 votes
Stephen Coleman April 12, 2023

+1

This request mirrors this one, other than it references Jira Service Management instead of Jira Software. Liking and following both in the hope that they create an API endpoint that will serve the need.

https://community.atlassian.com/t5/Jira-Service-Management/Link-a-confluence-space-to-a-jira-project-using-API/qaq-p/2253983#U2330010

0 votes
Prince Nyeche
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.
September 7, 2022

You need to have the Confluence application on the same instance as well as permission on the Confluence to link to it from the Project pages.

Suggest an answer

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

Atlassian Community Events