It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Modify Attachment Date and Creator

Scott Spyrison Jan 28, 2013

Hello,

Has anyone had success modifying an attachment's creator or creation date property?

I have been experimenting with both UWC and UDMF, but so far those only seem to work on pages and page comments.

I would welcome any suggestions, tips or pointers. I am also investigating the confluence database schema to see if it presents any possibilities.

1 answer

1 accepted

1 vote
Answer accepted
Matthew Cobby Jan 28, 2013

You could do a SQL update on the attachments table. Remember to shutdown confluence first, do SQL update, then start confluence and make sure you have a full SQL backup before you statr

The table is the attachments table

https://confluence.atlassian.com/pages/viewpage.action?pageId=179439242

You can get the attachments view by going to the page > Tools menu > attachments
when you hover over the link, you will see a number in the URL.
Just remember there may be multiple versions indicated by the prevver field.
If there is more than one version, you will just need to think about what version you are updating


Table "attachments"
       Column       |            Type             | Modifiers
--------------------+-----------------------------+-----------
 attachmentid       | bigint                      | not null
 title              | character varying(255)      | not null
 contenttype        | character varying(255)      | not null
 pageid             | bigint                      | not null
 creator            | character varying(255)      |
 creationdate       | timestamp without time zone |
 lastmodifier       | character varying(255)      |
 lastmoddate        | timestamp without time zone |
 filesize           | bigint                      |
 attachment_comment | character varying(255)      |
 attversion         | integer                     |
 prevver            | bigint                      |
Scott Spyrison Jan 28, 2013

Yes, I'm starting to think there is no way through the API. I spent some time in the uwc source code, tried various things, and the attachment is always added with the date of upload. In my case, SQL script might do the trick here for a simple wiki conversion. Something like Sharepoint it may also work, but will be more complex.

Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published in Confluence

6 Awesome Ways to Apply Trello, JIRA and Confluence to your Project

I attended  Atlassian Summit 2019  and learned a lot from the presenters, attendees and knowledgeable Atlassian product managers. The presentations I attended focused on applying Agile, pla...

2,565 views 11 28
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you