How to Programmatically Set the Active State of a Milestone

Post your questions regarding using the Vault and Fortress API in your programs.

Moderator: SourceGear

Post Reply
slmcmahon
Posts: 29
Joined: Sat Mar 29, 2008 6:13 pm
Location: Honolulu, HI
Contact:

How to Programmatically Set the Active State of a Milestone

Post by slmcmahon » Tue May 12, 2009 5:57 pm

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

shannon

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

Post by shannon » Tue May 12, 2009 7:09 pm

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)

slmcmahon
Posts: 29
Joined: Sat Mar 29, 2008 6:13 pm
Location: Honolulu, HI
Contact:

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

Post by slmcmahon » Tue May 12, 2009 7:12 pm

Excellent! Thanks for the speedy reply. I'll give this a shot.

Stephen

Post Reply