Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

How to change the creation date of an existing snapshot?

Is ti possible to change the creation date of an existing snapshot?
ITeamRepository repo = ...
IBaselineSet snapshot = ...
BaselineSet workingCopy = (BaselineSet) snapshot.getWorkingCopy();
workingCopy.setCreationDate(timestamp);
IScmClient scmClient = (IScmClient) repo.getClientLibrary(IScmClient.class);     // Anything like this?
scmClient.save(workingCopy, null);
Once the working copy has been updated, how can we save the item? We can't find any SCM client library...
We are going to create a lot of snapshot programmatically (from a software migration), but we need to maintain an original date, not the baselineset creation timestamp...
Thanks in advance.

0 votes


Accepted answer

Permanent link
There is nothing on the client side which will allow you to save modifications to items like this.

Generally speaking, only server side code in the SCM component will be able to modify SCM items.  There is no API to modify the creation date of a snapshot.

Sorry I don't have any suggestions for you.


SEC Servizi selected this answer as the correct answer

0 votes

Comments
There is no API to modify the creation date of a snapshot.

Not even on server side code, right?

correct.. you would be changing history

1 vote

That is correct.  Baselines and snapshots are generally considered immutable once they are created. The only API to modify a snapshot is for changing the name and comment ( setBaselineSetName and setBaselineSetComment on IScmService).

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,927
× 118
× 17

Question asked: Jul 16 '14, 9:24 a.m.

Question was seen: 4,516 times

Last updated: Jul 16 '14, 10:31 a.m.

Confirmation Cancel Confirm