My JIRA-Confluence integration didn't work properly, so I decided to recreate application links both in JIRA and Confluence. But it turned out that links to JIRA issues (inserted using 'JIRA Issue' macros) on all Confluence pages have become broken because it uses old application link to JIRA. I would like to update JIRA issue links by replacing it manually. In order to do this, I need to find all pages containing 'JIRA Issue' macros. Any ideas about how could I do that?
You can do it using a SQL query. Taken from the Team Calendars documentation and modified to use jiraissues
SELECT CONTENT.SPACEID, SPACES.spacekey, SPACES.spacename, CONTENT.CONTENTID, CONTENT.title, CONTENT.LASTMODDATE FROM CONTENT, BODYCONTENT, SPACES WHERE PREVVER IS NULL AND (CONTENTTYPE = 'PAGE' OR CONTENTTYPE = 'BLOGPOST') AND CONTENT.CONTENTID = BODYCONTENT.CONTENTID AND SPACES.spaceid=CONTENT.spaceid AND BODYCONTENT.BODY like '%{jiraissues%' ORDER BY CONTENT.LASTMODDATE DESC
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
also some other suggestions here: https://answers.atlassian.com/questions/59203/find-pages-that-use-certain-macros-plugins
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks a lot!
As long as I use Confluence 4.2, I needed to replace '%{jiraissues% with <ac:macro ac:name="jira">
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.