调用方法:查询Get
  /// <summary>
  /// 查询jira的项目s情况
  /// </summary>
  /// <param name="sender"></param>
  /// <param name="e"></param>
  protected void Page_Load(object sender, EventArgs e)
  {
  JiraApi manager = new JiraApi("admin", "admin");
  Response.Write(manager.DoQuery("project"));
  }
  调用方法:提交Post
  protected void Page_Load(object sender, EventArgs e)
  {
  if (!IsPostBack)
  {
  JiraApi api = new JiraApi(Config.User, Config.Password);
  //对问题添加备注
  SubmitComment(api, Request.QueryString["issue"], Request.QueryString["comment"]);
  }
  }
  /// <summary>
  /// 添加问题的备注
  /// </summary>
  /// <param name="jm">JiraApi实例</param>
  /// <param name="issue">问题的关键字,比如SomeIssue-18</param>
  /// <param name="comment">备注的内容</param>
  private void SubmitComment(JiraApi api, string issue, string comment)
  {
  string sData = string.Format("{"body": "{0}"}", comment);
  string uri = Config.BaseURL + string.Format("issue/{0}/comment", issue);
  Response.Write(api.DoPost(sData, uri));
  }