{"id":5777,"date":"2021-10-22T15:26:12","date_gmt":"2021-10-22T13:26:12","guid":{"rendered":"https:\/\/www.actonic.de\/unbekannte-anhaenge-in-confluence-erkennen\/"},"modified":"2023-03-29T11:53:05","modified_gmt":"2023-03-29T09:53:05","slug":"detecting-unknown-attachments-in-confluence","status":"publish","type":"post","link":"https:\/\/actonic.de\/en\/detecting-unknown-attachments-in-confluence\/","title":{"rendered":"Detecting unknown attachments in Confluence &#8211; How to use ScriptRunner for tidy Confluence pages"},"content":{"rendered":"<div class=\"wpb-content-wrapper\"><p>[vc_row][vc_column][vc_single_image image=&#8221;5763&#8243; img_size=&#8221;full&#8221; alignment=&#8221;center&#8221; onclick=&#8221;img_link_large&#8221;][vc_empty_space][vc_column_text]<\/p>\n<h2 id=\"&quot;Unknown-Attachment&quot;-in-Confluence---this-is-why-the-problem-arises\" data-renderer-start-pos=\"1544\">&#8220;Unknown Attachment&#8221; in Confluence &#8211; this is <span id=\"1caa7c57-3843-4d58-bdcf-2e2e8fda9a68\" data-renderer-mark=\"true\" data-mark-type=\"annotation\" data-mark-annotation-type=\"inlineComment\" data-id=\"1caa7c57-3843-4d58-bdcf-2e2e8fda9a68\">why <\/span>the problem arises<\/h2>\n<p data-renderer-start-pos=\"1613\">When you place files on a Confluence page, it is not the files themselves that are <span id=\"2711140d-d213-4e11-8255-87bdc46cd509\" data-renderer-mark=\"true\" data-mark-type=\"annotation\" data-mark-annotation-type=\"inlineComment\" data-id=\"2711140d-d213-4e11-8255-87bdc46cd509\">s<\/span>aved on your Confluence page, but the file path where the file is stored on your server. Confluence generates a file preview that you can click on to go to the file location and open the file.<\/p>\n<p data-renderer-start-pos=\"1891\">Now, if the file that was stored on the Confluence page is moved or deleted from the original file path, Confluence will no longer recognize the file on the file path and the &#8220;Unknown Attachment&#8221; icon will appear.<\/p>\n<p data-renderer-start-pos=\"2106\">Thus, Confluence cannot find the file, and you have to search for the changed location first. Often it happens that you need the file urgently when you go to the site, and as a result, you get behind with your work.<\/p>\n<p data-renderer-start-pos=\"2323\">In the case of our client, over the 15 years of his Confluence use, many references to files have been lost or moved. This caused him to see many such &#8220;Unknown Attachment&#8221; icons in Confluence. Since the customer was about to migrate from server to cloud, it was important for him to carefully clean up the Confluence instance before the migration in order to hand it over in a well-maintained manner. This required replacing the icons with the correct files.<\/p>\n<p data-renderer-start-pos=\"2783\">You now understand why it is important to prevent this issue and replace the &#8220;Unknown Attachments&#8221; icon with the actual file path to the file. You will learn how to do this most quickly in the following section.<\/p>\n<p>[\/vc_column_text][\/vc_column][\/vc_row][vc_row][vc_column][vc_column_text]<\/p>\n<h2 id=\"&quot;Unknown-Attachment&quot;-in-Confluence---how-to-solve-the-problem\" data-renderer-start-pos=\"2996\">&#8220;Unknown Attachment&#8221; in Confluence &#8211; how to solve the problem<\/h2>\n<p data-renderer-start-pos=\"3059\">Attention: The suggested solution has been tested by us so far only on Server and Data Center.<\/p>\n<p data-renderer-start-pos=\"3155\">Our consultant Victoria used ScriptRunner to solve the problem. For the following solution, you also need this add-on for your Confluence instance.<\/p>\n<p data-renderer-start-pos=\"3303\">You can find ScriptRunner here:<\/p>\n<p>[\/vc_column_text][button title=&#8221;ScriptRunner&#8221; link=&#8221;https:\/\/marketplace.atlassian.com\/apps\/6820\/scriptrunner-for-jira?hosting=server&amp;tab=overview&amp;utm_term=scriptrunner&amp;utm_campaign=sr4j_s-dc_marketplace-listing_scriptrunner-for-jira_de_2020-09-17&amp;utm_source=google&amp;utm_medium=cpc&amp;utm_content=scriptrunner&amp;hsa_acc=3162291167&amp;hsa_cam=11143493272&amp;hsa_grp=108818882586&amp;hsa_ad=465787289475&amp;hsa_src=g&amp;hsa_tgt=kwd-395203386687&amp;hsa_kw=scriptrunner&amp;hsa_mt=p&amp;hsa_net=adwords&amp;hsa_ver=3&amp;gclid=CjwKCAjw7fuJBhBdEiwA2lLMYUIg89vehYccfrFdeoOcKDdEWa52R4UbYzK6SULtGbl32YIaQg0FmRoCCj0QAvD_BwE&#8221; button_align=&#8221;left&#8221; button_size=&#8221;btn-lg&#8221; button_style=&#8221;secondary&#8221; el_id=&#8221;1634908925400-88f7b820-3cb7&#8243;][vc_column_text]<\/p>\n<h3>Step 1:<\/h3>\n<p>Open the &#8220;Confluence Administration&#8221; menu, which you can find via the cogwheel at the top right of your Confluence page, and click on &#8220;User management&#8221;.[\/vc_column_text][vc_single_image image=&#8221;5766&#8243; img_size=&#8221;full&#8221; onclick=&#8221;img_link_large&#8221;][vc_column_text]<\/p>\n<h3 data-renderer-start-pos=\"3505\">Step 2:<\/h3>\n<p data-renderer-start-pos=\"3505\">In the &#8220;SCRIPTRUNNER&#8221; pop-up menu that appears, select the &#8220;Console&#8221; field.<\/p>\n<p>[\/vc_column_text][vc_single_image image=&#8221;5768&#8243; img_size=&#8221;full&#8221;][vc_column_text]<\/p>\n<h3 data-renderer-start-pos=\"3594\">Step 3:<\/h3>\n<p data-renderer-start-pos=\"3594\">On the Console (see the black area in the screenshot), under Script, paste the code below.<\/p>\n<p>[\/vc_column_text][vc_single_image image=&#8221;5770&#8243; img_size=&#8221;full&#8221;][vc_column_text]<\/p>\n<div class=\"rich-media-item mediaSingleView-content-wrap image-center sc-hMqMXs eGqOOv sc-eNQAEJ huxiVb\" data-layout=\"center\" data-node-type=\"mediaSingle\">\n<div class=\"sc-jKJlTe cFgalf\">\n<div class=\"sc-etwtAo fJzugH\" data-context-id=\"6252789785\" data-type=\"file\" data-node-type=\"media\" data-width=\"1485\" data-height=\"714\" data-id=\"045a8a5b-b4d9-41be-ad27-81e17360841f\" data-collection=\"contentId-6252789785\" data-file-name=\"image-20211020-131559.png\" data-file-size=\"119309\" data-file-mime-type=\"image\/png\" data-alt=\"\">\n<div class=\"new-file-experience-wrapper sc-kcbnda irJOmN\" data-testid=\"media-card-view\">\n<div class=\"media-file-card-view sc-hcmgZB djFuSo\" data-testid=\"media-file-card-view\" data-test-status=\"complete\" data-test-media-name=\"image-20211020-131559.png\" data-test-progress=\"1\"><strong>Important:<\/strong> In the &#8221; &#8221; field on line 18, insert the key of your Space. Example: [&#8220;DOCS&#8221;, &#8220;DEV&#8221;, &#8220;ABC&#8221;]<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<p><span class=\"prismjs css-10fl9lg\" data-code-lang=\"\" data-ds--code--code-block=\"\"><code>def spaceList = [\"\"];<\/code><\/span><\/p>\n<p>It is also possible to insert multiple spaces, as you can see in the example.[\/vc_column_text][vc_column_text]<\/p>\n<pre data-pm-slice=\"0 0 []\"><code>import com.atlassian.confluence.spaces.SpaceManager\r\nimport com.atlassian.confluence.content.render.xhtml.DefaultConversionContext\r\nimport com.atlassian.confluence.pages.PageManager\r\nimport com.atlassian.confluence.xhtml.api.XhtmlContent;\r\nimport com.atlassian.sal.api.component.ComponentLocator\r\nimport com.atlassian.confluence.pages.Attachment\r\nimport org.apache.commons.lang3.StringUtils\r\n\r\n \r\n\r\ndef spaceManager = ComponentLocator.getComponent(SpaceManager);\r\ndef pageManager = ComponentLocator.getComponent(PageManager);\r\ndef xhtmlContent = ComponentLocator.getComponent(XhtmlContent);\r\n\r\n \r\ndef result = [\"List of pages with at least one unknown attachment...\"];\r\n\/\/ Type in your space keys below, separte with commas, e.g. \"DOCS\", \"DEV\"\r\ndef spaceList = [\"\"];\r\n\r\n \r\n\r\n \r\n\r\nfor (def spaceKey : spaceList) {\r\n    def space = spaceManager.getSpace(spaceKey)\r\n    def pages = pageManager.getPages(space, true);\r\n    result.add(\"Working with space '${space.key} : ${space.name}', found '${pages.size}' pages\");\r\n\r\n \r\n\r\n    for (def page : pages) {\r\n\r\n \r\n\r\n        \/\/ def page = pageManager.getPage(50661666)\r\n        def content = xhtmlContent.convertStorageToView(page.getBodyAsString(), new DefaultConversionContext(page.toPageContext()))\r\n        if (StringUtils.containsIgnoreCase(content, \"\/unknown-attachment\")) {\r\n            result.add(\" -- (${page.id}) '${page.title}'\");\r\n        }\r\n\r\n \r\n\r\n    }\r\n}\r\n\r\n \r\n\r\nString string = \"\";\r\nfor (String r : result)\r\n    string += r + \"&lt;br&gt;\"\r\nlog.error string;\r\nreturn string;<\/code><\/pre>\n<p>[\/vc_column_text][vc_column_text]After inserting the code, you will get the following view in ScriptRunner, where you can also edit line 18 as described above:[\/vc_column_text][vc_single_image image=&#8221;5773&#8243; img_size=&#8221;full&#8221;][vc_column_text]<\/p>\n<h3 data-renderer-start-pos=\"5407\">Step 4:<\/h3>\n<p data-renderer-start-pos=\"5416\">Run this script in ScriptRunner. This may take a few minutes to a few hours (depending on the size of the blanks). After it runs through, check the Confluence logs on your server. The output that is generated will look like this:<\/p>\n<p>[\/vc_column_text][vc_column_text]<\/p>\n<pre data-pm-slice=\"0 0 []\"><code>Working with space 'DOCS : Documents', found '153' pages\r\n\r\n-- (123456789) 'Infrastructure - Network'\r\n\r\n-- (99999999999) 'Evaluation 2021'<\/code><\/pre>\n<p>[\/vc_column_text][vc_column_text]<\/p>\n<p data-renderer-start-pos=\"5784\">The first line references the name of the range you defined earlier in line 18, and the total of all attachments found in that range (in our customer&#8217;s example, in total 153).<\/p>\n<p data-renderer-start-pos=\"5961\">In the next lines, &#8220;&#8211;&#8221; is used to reference each &#8220;Unknown Attachment&#8221; by the PageID and the name of the attachment.<\/p>\n<p>[\/vc_column_text][vc_column_text]<\/p>\n<h3 data-renderer-start-pos=\"6079\">Step 5:<\/h3>\n<p data-renderer-start-pos=\"6088\">The next step is to access the individual Confluence pages with &#8220;Unknown Attachments&#8221; identified in the fourth step. To do this, first open a new tab in the browser and enter the following URL there. Replace &#8220;your confluence url&#8221; with your company&#8217;s Confluence URL and &#8220;xxxxxxx&#8221; with one of the PageIDs you determined in the previous step.<\/p>\n<p>[\/vc_column_text][vc_column_text]https:\/\/&lt;your-confluence-url&gt;.de\/pages\/viewpage.action?pageId=xxxxxxx[\/vc_column_text][vc_column_text]<\/p>\n<h3 data-renderer-start-pos=\"6502\">Step 6:<\/h3>\n<p data-renderer-start-pos=\"6511\">Access the pages<span id=\"a960fa8d-b6e3-42b5-a6c2-75a98aab0e65\" data-renderer-mark=\"true\" data-mark-type=\"annotation\" data-mark-annotation-type=\"inlineComment\" data-id=\"a960fa8d-b6e3-42b5-a6c2-75a98aab0e65\"> that have been detected that way<\/span> and replace the &#8220;Unknown Attachment&#8221; icons with the correct files needed for this purpose from your server.<\/p>\n<p>[\/vc_column_text][\/vc_column][\/vc_row][vc_row][vc_column][vc_column_text]<\/p>\n<h2 id=\"Conclusion\" data-renderer-start-pos=\"6672\"><span id=\"ff6e9361-a720-426d-b197-772c7baeae0e\" data-renderer-mark=\"true\" data-mark-type=\"annotation\" data-mark-annotation-type=\"inlineComment\" data-id=\"ff6e9361-a720-426d-b197-772c7baeae0e\">Conclusion<\/span><\/h2>\n<p data-renderer-start-pos=\"6684\">Follow these six steps, and you too will be able to eliminate all &#8220;Unknown Attachment&#8221; icons on your Confluence instance.<\/p>\n<p data-renderer-start-pos=\"6807\">In the described case study, our customer was extremely satisfied with the work and the quick solution of the problem by our Atlassian Consultant Victoria.<\/p>\n<p data-renderer-start-pos=\"6964\">If you need a competent partner at your side as well, who can always help you quickly and effectively with all kinds of problems that may arise when working with the various Atlassian tools, Actonic is the right partner for you.<\/p>\n<p data-renderer-start-pos=\"7194\">Build on the wealth of experience of our long-standing Atlassian consultants and get rid of all your problems with Atlassian topics through our Atlassian consulting. As Atlassian Solution Partner and Marketplace Vendor, we are the ideal contact for you!<\/p>\n<p>[\/vc_column_text][vc_column_text]<\/p>\n<h3 style=\"text-align: center;\">Learn more about our Atlassian consulting service:<\/h3>\n<p>[\/vc_column_text][button title=&#8221;Learn more now&#8221; link=&#8221;https:\/\/www.actonic.de\/en\/atlassian-consulting\/&#8221; button_align=&#8221;center&#8221; button_size=&#8221;btn-lg&#8221; el_id=&#8221;1634909605885-6402cc17-7717&#8243;][vc_empty_space height=&#8221;64px&#8221;][vc_column_text el_class=&#8221;subhead&#8221;]<\/p>\n<p style=\"text-align: center;\" data-pm-slice=\"1 1 []\">Contact us now via the contact box below for your personal Atlassian consulting quote:<\/p>\n<p>[\/vc_column_text][\/vc_column][\/vc_row]<\/p>\n<\/div>","protected":false},"excerpt":{"rendered":"<p>In this article we will explain why sometimes &#8220;Unknown Attachments&#8221; icons appear on your Confluence page and how to find all of them on your instance in no time using our consultant Victoria&#8217;s method to replace them with the correct file.<\/p>\n","protected":false},"author":13,"featured_media":5785,"comment_status":"open","ping_status":"open","sticky":false,"template":"single_cta.php","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[242],"tags":[342,281,290],"class_list":["post-5777","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-articles-atlassian-best-practises","tag-atlassian-best-practises","tag-confluence-en","tag-migration-en"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.6 (Yoast SEO v27.8) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Detecting unknown attachments in Confluence - How to use ScriptRunner for tidy Confluence pages - Actonic \u2013 Unfolding your potential<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/actonic.de\/en\/detecting-unknown-attachments-in-confluence\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Detecting unknown attachments in Confluence - How to use ScriptRunner for tidy Confluence pages\" \/>\n<meta property=\"og:description\" content=\"In this article we will explain why sometimes &quot;Unknown Attachments&quot; icons appear on your Confluence page and how to find all of them on your instance in no time using our consultant Victoria&#039;s method to replace them with the correct file.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/actonic.de\/en\/detecting-unknown-attachments-in-confluence\/\" \/>\n<meta property=\"og:site_name\" content=\"Actonic \u2013 Unfolding your potential\" \/>\n<meta property=\"article:published_time\" content=\"2021-10-22T13:26:12+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-03-29T09:53:05+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/actonic.de\/wp-content\/uploads\/2021\/10\/Detect-unknown-attachments-EN-1.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"585\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Ruben J\u00e4ckle\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Ruben J\u00e4ckle\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/actonic.de\\\/en\\\/detecting-unknown-attachments-in-confluence\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/actonic.de\\\/en\\\/detecting-unknown-attachments-in-confluence\\\/\"},\"author\":{\"name\":\"Ruben J\u00e4ckle\",\"@id\":\"https:\\\/\\\/actonic.de\\\/en\\\/#\\\/schema\\\/person\\\/9f48b279e4bd61a4afc30082e6eac274\"},\"headline\":\"Detecting unknown attachments in Confluence &#8211; How to use ScriptRunner for tidy Confluence pages\",\"datePublished\":\"2021-10-22T13:26:12+00:00\",\"dateModified\":\"2023-03-29T09:53:05+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/actonic.de\\\/en\\\/detecting-unknown-attachments-in-confluence\\\/\"},\"wordCount\":1084,\"commentCount\":0,\"image\":{\"@id\":\"https:\\\/\\\/actonic.de\\\/en\\\/detecting-unknown-attachments-in-confluence\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/actonic.de\\\/wp-content\\\/uploads\\\/2021\\\/10\\\/Detect-unknown-attachments-EN-1.png\",\"keywords\":[\"Atlassian Best Practices\",\"Confluence\",\"Migration\"],\"articleSection\":[\"Atlassian Best Practises\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/actonic.de\\\/en\\\/detecting-unknown-attachments-in-confluence\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/actonic.de\\\/en\\\/detecting-unknown-attachments-in-confluence\\\/\",\"url\":\"https:\\\/\\\/actonic.de\\\/en\\\/detecting-unknown-attachments-in-confluence\\\/\",\"name\":\"Detecting unknown attachments in Confluence - How to use ScriptRunner for tidy Confluence pages - Actonic \u2013 Unfolding your potential\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/actonic.de\\\/en\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/actonic.de\\\/en\\\/detecting-unknown-attachments-in-confluence\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/actonic.de\\\/en\\\/detecting-unknown-attachments-in-confluence\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/actonic.de\\\/wp-content\\\/uploads\\\/2021\\\/10\\\/Detect-unknown-attachments-EN-1.png\",\"datePublished\":\"2021-10-22T13:26:12+00:00\",\"dateModified\":\"2023-03-29T09:53:05+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/actonic.de\\\/en\\\/#\\\/schema\\\/person\\\/9f48b279e4bd61a4afc30082e6eac274\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/actonic.de\\\/en\\\/detecting-unknown-attachments-in-confluence\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/actonic.de\\\/en\\\/detecting-unknown-attachments-in-confluence\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/actonic.de\\\/en\\\/detecting-unknown-attachments-in-confluence\\\/#primaryimage\",\"url\":\"https:\\\/\\\/actonic.de\\\/wp-content\\\/uploads\\\/2021\\\/10\\\/Detect-unknown-attachments-EN-1.png\",\"contentUrl\":\"https:\\\/\\\/actonic.de\\\/wp-content\\\/uploads\\\/2021\\\/10\\\/Detect-unknown-attachments-EN-1.png\",\"width\":1200,\"height\":585},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/actonic.de\\\/en\\\/detecting-unknown-attachments-in-confluence\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/actonic.de\\\/en\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Detecting unknown attachments in Confluence &#8211; How to use ScriptRunner for tidy Confluence pages\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/actonic.de\\\/en\\\/#website\",\"url\":\"https:\\\/\\\/actonic.de\\\/en\\\/\",\"name\":\"Actonic \u2013 Unfolding your potential\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/actonic.de\\\/en\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/actonic.de\\\/en\\\/#\\\/schema\\\/person\\\/9f48b279e4bd61a4afc30082e6eac274\",\"name\":\"Ruben J\u00e4ckle\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/1bd9fb07640504f06d705ac17460c2bef4f5a126dbffdb477e32751261219421?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/1bd9fb07640504f06d705ac17460c2bef4f5a126dbffdb477e32751261219421?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/1bd9fb07640504f06d705ac17460c2bef4f5a126dbffdb477e32751261219421?s=96&d=mm&r=g\",\"caption\":\"Ruben J\u00e4ckle\"},\"url\":\"https:\\\/\\\/actonic.de\\\/en\\\/author\\\/ruben-jaeckle\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Detecting unknown attachments in Confluence - How to use ScriptRunner for tidy Confluence pages - Actonic \u2013 Unfolding your potential","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/actonic.de\/en\/detecting-unknown-attachments-in-confluence\/","og_locale":"en_US","og_type":"article","og_title":"Detecting unknown attachments in Confluence - How to use ScriptRunner for tidy Confluence pages","og_description":"In this article we will explain why sometimes \"Unknown Attachments\" icons appear on your Confluence page and how to find all of them on your instance in no time using our consultant Victoria's method to replace them with the correct file.","og_url":"https:\/\/actonic.de\/en\/detecting-unknown-attachments-in-confluence\/","og_site_name":"Actonic \u2013 Unfolding your potential","article_published_time":"2021-10-22T13:26:12+00:00","article_modified_time":"2023-03-29T09:53:05+00:00","og_image":[{"width":1200,"height":585,"url":"https:\/\/actonic.de\/wp-content\/uploads\/2021\/10\/Detect-unknown-attachments-EN-1.png","type":"image\/png"}],"author":"Ruben J\u00e4ckle","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Ruben J\u00e4ckle","Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/actonic.de\/en\/detecting-unknown-attachments-in-confluence\/#article","isPartOf":{"@id":"https:\/\/actonic.de\/en\/detecting-unknown-attachments-in-confluence\/"},"author":{"name":"Ruben J\u00e4ckle","@id":"https:\/\/actonic.de\/en\/#\/schema\/person\/9f48b279e4bd61a4afc30082e6eac274"},"headline":"Detecting unknown attachments in Confluence &#8211; How to use ScriptRunner for tidy Confluence pages","datePublished":"2021-10-22T13:26:12+00:00","dateModified":"2023-03-29T09:53:05+00:00","mainEntityOfPage":{"@id":"https:\/\/actonic.de\/en\/detecting-unknown-attachments-in-confluence\/"},"wordCount":1084,"commentCount":0,"image":{"@id":"https:\/\/actonic.de\/en\/detecting-unknown-attachments-in-confluence\/#primaryimage"},"thumbnailUrl":"https:\/\/actonic.de\/wp-content\/uploads\/2021\/10\/Detect-unknown-attachments-EN-1.png","keywords":["Atlassian Best Practices","Confluence","Migration"],"articleSection":["Atlassian Best Practises"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/actonic.de\/en\/detecting-unknown-attachments-in-confluence\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/actonic.de\/en\/detecting-unknown-attachments-in-confluence\/","url":"https:\/\/actonic.de\/en\/detecting-unknown-attachments-in-confluence\/","name":"Detecting unknown attachments in Confluence - How to use ScriptRunner for tidy Confluence pages - Actonic \u2013 Unfolding your potential","isPartOf":{"@id":"https:\/\/actonic.de\/en\/#website"},"primaryImageOfPage":{"@id":"https:\/\/actonic.de\/en\/detecting-unknown-attachments-in-confluence\/#primaryimage"},"image":{"@id":"https:\/\/actonic.de\/en\/detecting-unknown-attachments-in-confluence\/#primaryimage"},"thumbnailUrl":"https:\/\/actonic.de\/wp-content\/uploads\/2021\/10\/Detect-unknown-attachments-EN-1.png","datePublished":"2021-10-22T13:26:12+00:00","dateModified":"2023-03-29T09:53:05+00:00","author":{"@id":"https:\/\/actonic.de\/en\/#\/schema\/person\/9f48b279e4bd61a4afc30082e6eac274"},"breadcrumb":{"@id":"https:\/\/actonic.de\/en\/detecting-unknown-attachments-in-confluence\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/actonic.de\/en\/detecting-unknown-attachments-in-confluence\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/actonic.de\/en\/detecting-unknown-attachments-in-confluence\/#primaryimage","url":"https:\/\/actonic.de\/wp-content\/uploads\/2021\/10\/Detect-unknown-attachments-EN-1.png","contentUrl":"https:\/\/actonic.de\/wp-content\/uploads\/2021\/10\/Detect-unknown-attachments-EN-1.png","width":1200,"height":585},{"@type":"BreadcrumbList","@id":"https:\/\/actonic.de\/en\/detecting-unknown-attachments-in-confluence\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/actonic.de\/en\/"},{"@type":"ListItem","position":2,"name":"Detecting unknown attachments in Confluence &#8211; How to use ScriptRunner for tidy Confluence pages"}]},{"@type":"WebSite","@id":"https:\/\/actonic.de\/en\/#website","url":"https:\/\/actonic.de\/en\/","name":"Actonic \u2013 Unfolding your potential","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/actonic.de\/en\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/actonic.de\/en\/#\/schema\/person\/9f48b279e4bd61a4afc30082e6eac274","name":"Ruben J\u00e4ckle","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/1bd9fb07640504f06d705ac17460c2bef4f5a126dbffdb477e32751261219421?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/1bd9fb07640504f06d705ac17460c2bef4f5a126dbffdb477e32751261219421?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/1bd9fb07640504f06d705ac17460c2bef4f5a126dbffdb477e32751261219421?s=96&d=mm&r=g","caption":"Ruben J\u00e4ckle"},"url":"https:\/\/actonic.de\/en\/author\/ruben-jaeckle\/"}]}},"jetpack_featured_media_url":"https:\/\/actonic.de\/wp-content\/uploads\/2021\/10\/Detect-unknown-attachments-EN-1.png","_links":{"self":[{"href":"https:\/\/actonic.de\/en\/wp-json\/wp\/v2\/posts\/5777","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/actonic.de\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/actonic.de\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/actonic.de\/en\/wp-json\/wp\/v2\/users\/13"}],"replies":[{"embeddable":true,"href":"https:\/\/actonic.de\/en\/wp-json\/wp\/v2\/comments?post=5777"}],"version-history":[{"count":0,"href":"https:\/\/actonic.de\/en\/wp-json\/wp\/v2\/posts\/5777\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/actonic.de\/en\/wp-json\/wp\/v2\/media\/5785"}],"wp:attachment":[{"href":"https:\/\/actonic.de\/en\/wp-json\/wp\/v2\/media?parent=5777"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/actonic.de\/en\/wp-json\/wp\/v2\/categories?post=5777"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/actonic.de\/en\/wp-json\/wp\/v2\/tags?post=5777"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}