PivotalTrackerAPI/Domain/Model/PivotalStory.cs
/// <summary>
/// Gets the stories for a project using a filter to limit the data returned
/// </summary>
/// <see cref="PivotalTrackerAPI.Util.PivotalFilterHelper"/>
/// <param name="user">The user to get the ApiToken from</param>
/// <param name="projectId">The id of the project to get stories for</param>
/// <param name="filter">The filter to limit the data returned</param>
/// <returns>the stories for the project</returns>
Gets the stories for a project using a filter to limit the data returned
Gets the stories for a project using a filter to limit the data returned
public static IList<PivotalStory> FetchStories(PivotalUser user, int projectId, string filter)
    {
      string url = String.Format("{0}/projects/{1}/stories?token={2}", PivotalService.BaseUrl, projectId.ToString(), user.ApiToken);
      if (!string.IsNullOrEmpty(filter))
        url += "&" + filter;
      XmlDocument xmlDoc = PivotalService.GetData(url);
      PivotalStoryList storyList = SerializationHelper.DeserializeFromXmlDocument<PivotalStoryList>(xmlDoc);
      return storyList.Stories;
    }
public static IList < PivotalStory > FetchStories ( PivotalUser user , int projectId , string filter ) { string url = String . Format ( " " , PivotalService . BaseUrl , projectId . ToString ( ) , user . ApiToken ) ; if ( ! string . IsNullOrEmpty ( filter ) ) url += " " + filter ; XmlDocument xmlDoc = PivotalService . GetData ( url ) ; PivotalStoryList storyList = SerializationHelper . DeserializeFromXmlDocument < PivotalStoryList > ( xmlDoc ) ; return storyList . Stories ; }
Gets the stories for a project using a filter to limit the data returned
Gets the stories for a project using a filter to limit the data returned
the stories for the project
the stories for the project
user
PivotalUser
The user to get the ApiToken from
The user to get the ApiToken from
projectId
int
The id of the project to get stories for
The id of the project to get stories for
filter
string
The filter to limit the data returned
The filter to limit the data returned
see
None