PivotalTrackerAPI/Domain/Model/PivotalStory.cs
/// <summary>
/// Gets s single story for a project
/// </summary>
/// <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="storyId">The id of the story to get</param>
/// <returns>the stories for the project</returns>
Gets s single story for a project
Gets s single story for a project
public static PivotalStory FetchStory(PivotalUser user, int projectId, string storyId)
    {
      string url = String.Format("{0}/projects/{1}/stories/{2}?token={3}", PivotalService.BaseUrl, projectId.ToString(), storyId, user.ApiToken);
      XmlDocument xmlDoc = PivotalService.GetData(url);
      PivotalStory story = SerializationHelper.DeserializeFromXmlDocument<PivotalStory>(xmlDoc);
      return story;
    }
public static PivotalStory FetchStory ( PivotalUser user , int projectId , string storyId ) { string url = String . Format ( " " , PivotalService . BaseUrl , projectId . ToString ( ) , storyId , user . ApiToken ) ; XmlDocument xmlDoc = PivotalService . GetData ( url ) ; PivotalStory story = SerializationHelper . DeserializeFromXmlDocument < PivotalStory > ( xmlDoc ) ; return story ; }
Gets s single story for a project
Gets s single story for a project
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
storyId
string
The id of the story to get
The id of the story to get