PivotalTrackerAPI/Domain/Model/PivotalStory.cs
/// <summary>
/// Updates a story without requiring a reference
/// </summary>
/// <param name="user">The user to get the ApiToken from</param>
/// <param name="projectId">The project id</param>
/// <param name="story">The story id</param>
/// <returns>The updated story instance</returns>
Updates a story without requiring a reference
Updates a story without requiring a reference
public static PivotalStory UpdateStory(PivotalUser user, string projectId, PivotalStory story)
    {
      string url = String.Format("{0}/projects/{1}/stories/{2}?token={3}", PivotalService.BaseUrl, projectId, story.Id, user.ApiToken);
      XmlDocument xml = SerializationHelper.SerializeToXmlDocument<PivotalStory>(story);
      string storyXml = PivotalService.CleanXmlForSubmission(xml, "//story", ExcludeNodesOnSubmit, true);
      XmlDocument response = PivotalService.SubmitData(url, storyXml, ServiceMethod.PUT);
      return SerializationHelper.DeserializeFromXmlDocument<PivotalStory>(response);
    }
public static PivotalStory UpdateStory ( PivotalUser user , string projectId , PivotalStory story ) { string url = String . Format ( " " , PivotalService . BaseUrl , projectId , story . Id , user . ApiToken ) ; XmlDocument xml = SerializationHelper . SerializeToXmlDocument < PivotalStory > ( story ) ; string storyXml = PivotalService . CleanXmlForSubmission ( xml , " " , ExcludeNodesOnSubmit , true ) ; XmlDocument response = PivotalService . SubmitData ( url , storyXml , ServiceMethod . PUT ) ; return SerializationHelper . DeserializeFromXmlDocument < PivotalStory > ( response ) ; }
Updates a story without requiring a reference
Updates a story without requiring a reference
The updated story instance
The updated story instance
user
PivotalUser
The user to get the ApiToken from
The user to get the ApiToken from
projectId
string
The project id
The project id
story
PivotalStory
The story id
The story id