PivotalTrackerAPI/Domain/Model/PivotalStory.cs
/// <summary>
/// Adds a note (comment) to a story
/// </summary>
/// <param name="user">The user to get the ApiToken from</param>
/// <param name="noteText">The text to add to the story</param>
/// <returns>The text that was added</returns>
Adds a note (comment) to a story
Adds a note ( comment ) to a story
public string AddNote(PivotalUser user, string noteText)
    {
      string url = String.Format("{0}/projects/{1}/stories/{2}?token={3}", PivotalService.BaseUrl, ProjectId, Id, user.ApiToken);
      string storyXml = String.Format("<note><text>{0}</text></note>", WebEncoding.UrlEncode(noteText));
      XmlDocument response = PivotalService.SubmitData(url, storyXml, ServiceMethod.POST);
      return noteText;
    }
public string AddNote ( PivotalUser user , string noteText ) { string url = String . Format ( " " , PivotalService . BaseUrl , ProjectId , Id , user . ApiToken ) ; string storyXml = String . Format ( " " , WebEncoding . UrlEncode ( noteText ) ) ; XmlDocument response = PivotalService . SubmitData ( url , storyXml , ServiceMethod . POST ) ; return noteText ; }
Adds a note (comment) to a story
Adds a note ( comment ) to a story
The text that was added
The text that was added
user
PivotalUser
The user to get the ApiToken from
The user to get the ApiToken from
noteText
string
The text to add to the story
The text to add to the story