Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Massive Update without changing "Last Date Modified" nor "Last User Modified" ?

Vincent Thoulé _Alkaes_ June 6, 2018

Hi All

I prepared a procedure in order to append the macro "Properties Pages" more than one thousand pages using the JAVA APIs.

Is there a way to perform this update without changing the "Last Date Modified" nor "Last User Modified" ?

Users need to keep the previous Date and Modifier.

Vincent

1 answer

0 votes
Ravi Varma
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 7, 2018

Hi @Vincent Thoulé _Alkaes_,

Both Confluence and JIRA by design do not allow modifying Last Date Modified through APIs.

Atlassian does not recommend modifying the data at the database level. 

Please note that

  • "Last Date Modified" is preserved in content table lastmoddate column 
  • Value stored in  content table lastmoddate column is time zone sensitive
  • "Last User Modified" is preserved in content table lastmodifier column 
  •  Value stored in  content table lastmodifier column is an alphanumeric and has a foreign key relation with user_mapping table

Though we do not recommend, you can try out the following:

  • Preserve the lastmoddate and lastmodifier before modifying pages
  • Modify the pages
  • Update the lastmoddate and lastmodifier for respective pages by looking up the data that was preserved earlier

Please execute the solution for a few records and validate the results before applying it on a large data set.

Regards,

Ravi Varma

Vincent Thoulé _Alkaes_ June 8, 2018

Hi Ravi,

Thanks for advising on this details.

I will try to perform it without changing it in Database.

I will at least change the modified by switching the User Authentication Context.

 

V.

Paolo Bolla November 17, 2021

_

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events