PivotalTrackerAPI/Domain/Model/PivotalTask.cs
/// <summary>
/// Retrieves tasks with an optional filter
/// </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="filter">Filter to pass to Pivotal</param>
/// <returns></returns>
Retrieves tasks with an optional filter
Retrieves tasks with an optional filter
public static IList<PivotalTask> FetchTasks(PivotalUser user, int projectId, int storyId, string filter)
    {
      string url = String.Format("{0}/projects/{1}/stories/{2}/tasks?token={3}", PivotalService.BaseUrl, projectId, storyId, user.ApiToken);
      if (!string.IsNullOrEmpty(filter))
        url += "&" + filter;
      XmlDocument xmlDoc = PivotalService.GetData(url);
      PivotalTaskList taskList = SerializationHelper.DeserializeFromXmlDocument<PivotalTaskList>(xmlDoc);
      return taskList.Tasks;
    }
public static IList < PivotalTask > FetchTasks ( PivotalUser user , int projectId , int storyId , string filter ) { string url = String . Format ( " " , PivotalService . BaseUrl , projectId , storyId , user . ApiToken ) ; if ( ! string . IsNullOrEmpty ( filter ) ) url += " " + filter ; XmlDocument xmlDoc = PivotalService . GetData ( url ) ; PivotalTaskList taskList = SerializationHelper . DeserializeFromXmlDocument < PivotalTaskList > ( xmlDoc ) ; return taskList . Tasks ; }
Retrieves tasks with an optional filter
Retrieves tasks with an optional filter
None
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
filter
string
Filter to pass to Pivotal
Filter to pass to Pivotal