PivotalTrackerAPI/Domain/Model/PivotalTask.cs
/// <summary>
/// Updates a task 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="storyId">The story id</param>
/// <param name="task">The task to update</param>
/// <returns>The updated task instance</returns>
Updates a task without requiring a reference
Updates a task without requiring a reference
public static PivotalTask UpdateTask(PivotalUser user, int projectId, int storyId, PivotalTask task)
    {
      string url = String.Format("{0}/projects/{1}/stories/{2}/tasks/{3}?token={4}", PivotalService.BaseUrl, projectId, storyId, task.TaskId.GetValueOrDefault().ToString(), user.ApiToken);
      XmlDocument xml = SerializationHelper.SerializeToXmlDocument<PivotalTask>(task);
      string taskXml = PivotalService.CleanXmlForSubmission(xml, "//task", ExcludeNodesOnSubmit, true);
      XmlDocument response = PivotalService.SubmitData(url, taskXml, ServiceMethod.PUT);
      return SerializationHelper.DeserializeFromXmlDocument<PivotalTask>(response);
    }
public static PivotalTask UpdateTask ( PivotalUser user , int projectId , int storyId , PivotalTask task ) { string url = String . Format ( " " , PivotalService . BaseUrl , projectId , storyId , task . TaskId . GetValueOrDefault ( ) . ToString ( ) , user . ApiToken ) ; XmlDocument xml = SerializationHelper . SerializeToXmlDocument < PivotalTask > ( task ) ; string taskXml = PivotalService . CleanXmlForSubmission ( xml , " " , ExcludeNodesOnSubmit , true ) ; XmlDocument response = PivotalService . SubmitData ( url , taskXml , ServiceMethod . PUT ) ; return SerializationHelper . DeserializeFromXmlDocument < PivotalTask > ( response ) ; }
Updates a task without requiring a reference
Updates a task without requiring a reference
The updated task instance
The updated task instance
user
PivotalUser
The user to get the ApiToken from
The user to get the ApiToken from
projectId
int
The project id
The project id
storyId
int
The story id
The story id
task
PivotalTask
The task to update
The task to update