SQL to find the highest number of attachment revisions in Confluence?

LASER June 9, 2014

Is there any SQL (MySQL preferably) that one can run to find the attachments that have the highest number of revisions in Confluence? (I'm using 4.2 currently)

2 answers

1 accepted

2 votes
Answer accepted
FelipeA
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.
June 9, 2014

Hi Ed,

I believe this is what you're looking for:

SELECT *,
       MAX(ATTVERSION)
FROM ATTACHMENTS
GROUP BY TITLE
ORDER BY ATTVERSION DESC;

Please let me know if this works for you.

Best regards,

Felipe Alencastro

0 votes
LASER June 10, 2014

Worked perfectly, thank-you!

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events