Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,459,360
Community Members
 
Community Events
176
Community Groups

Is there a way to identify whether an attachment is visible on a page?

I'm aiming to delete duplicated attachments from a Confluence instance using the rest API. There are multiple duplicated files which are attached to pages but not visible on the page, and not being used, hence we're looking to delete them.

 

Is there a field which can be used with the rest API to identify attachments which are attached to a page but don't appear on it?

1 answer

0 votes

Welcome to the Atlassian Community!

All attachments are visible on a page, if the person looking has permission to see the page.

I think you mean "does the page include a 'show attachment' macro/function so the attachment is partially or fully rendered when viewing the page".  

It is a technical quibble on the wording, but it is important because the answer to "is an attachment visible on a page" is simply "yes". 

I think the answer you are looking for is "not easily".  You would need to search all of your page content for the macros that make attachments render on the page, and bear in mind that a most of those macros do not limit themselves to "file attached to the current page" - most can draw in attachments from other pages.

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events