Forums

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

What is the SQL to find out what Confluence Spaces have links back to JIRA

jay.shain@dxc.com September 10, 2018

I am looking for an SQL Query that will help me find out which Confluence Spaces have any ties back to JIRA projects, issues, etc. 

Can you please advise.

 

Thanks,

1 answer

0 votes
Amith Mathur {Appfire}
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 10, 2018

Hi jay.shain@dxc.com,

Here are few links with the respective information, which will be helpful to retrieve the list of Confluence pages which has the links to JIRA or use the macro. 

Additionally, you can execute the below query against your Confluence database to find all the external links as well:

SELECT s.spacename as Space, c.title as Page, l.destspacekey as SpaceOrProtocol, l.destpagetitle as Destination
FROM LINKS l
JOIN CONTENT c ON c.contentid = l.contentid
JOIN SPACES s ON s.spaceid = c.spaceid
WHERE c.prevver IS NULL and l.destspacekey in ('http','https')
ORDER BY l.destspacekey;

Thanks,
Amith Mathur

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events