Page 1 of 1

How to Programmatically Set the Active State of a Milestone

Posted: Tue May 12, 2009 5:57 pm
by slmcmahon
I need to be able to programmatically set the Active property of a Milestone to false. I looked through the VaultClientIntegrationLib.chm and didn't see anything that would describe how to do this. Do you have any suggestions?

Stephen

Re: How to Programmatically Set the Active State of a Milestone

Posted: Tue May 12, 2009 7:09 pm
by shannon
We don't do this on the client side, so there isn't a convenience method for it. You'll have to call the web service.

Get the MantisMilestone object you want to modify (you can use this method to list the milestones: ItemTrackingOperations.ProcessCommandListFortressMilestones) and set the Active property to false.

Then your call to modify will look something like this:

ServerOperations.client.ClientInstance.Connection.DragnetServiceInstance.ModifyMilestone(milestone.ProjectID, milestone)

Re: How to Programmatically Set the Active State of a Milestone

Posted: Tue May 12, 2009 7:12 pm
by slmcmahon
Excellent! Thanks for the speedy reply. I'll give this a shot.

Stephen