def create(user_name, repo_name, params={ })
      _update_user_repo_params(user_name, repo_name)
      _validate_user_repo_params(user, repo) unless user? && repo?

      normalize! params
      _merge_user_into_params!(params) unless params.has_key?('user')
      # _merge_mime_type(:issue, params)
      filter! VALID_ISSUE_PARAM_NAMES, params
      assert_required_keys(%w[ title ], params)

      post_request("/1.0/repositories/#{user}/#{repo.downcase}/issues/", params)
    end
def create(user_name, repo_name, params={ })
      _update_user_repo_params(user_name, repo_name)
      _validate_user_repo_params(user, repo) unless user? && repo?

      normalize! params
      _merge_user_into_params!(params) unless params.has_key?('user')
      # _merge_mime_type(:issue, params)
      filter! VALID_ISSUE_PARAM_NAMES, params
      assert_required_keys(%w[ title ], params)

      post_request("/1.0/repositories/#{user}/#{repo.downcase}/issues/", params)
    end
Create an issue

 = Inputs
  <tt>:title</tt> - Required string
  <tt>:content</tt> - Optional string
  <tt>:responsible</tt> - Optional string - Login for the user that this issue should be assigned to.
  <tt>:milestone</tt> - Optional number - Milestone to associate this issue with
  <tt>:version</tt> - Optional number - Version to associate this issue with
  <tt>:component</tt> - Optional number - Component to associate this issue with
  <tt>:priority</tt> - Optional string - The priority of this issue
  * <tt>trivial</tt>
  * <tt>minor</tt>
  * <tt>major</tt>
  * <tt>critical</tt>
  * <tt>blocker</tt>
  <tt>:status</tt> - Optional string - The status of this issue
  * <tt>new</tt>
  * <tt>open</tt>
  * <tt>resolved</tt>
  * <tt>on hold</tt>
  * <tt>invalid</tt>
  * <tt>duplicate</tt>
  * <tt>wontfix</tt>
  <tt>:kind</tt> - Optional string - The kind of issue
  * <tt>bug</tt>
  * <tt>enhancement</tt>
  * <tt>proposal</tt>
  * <tt>task</tt>

 = Examples
  bitbucket = BitBucket.new :user => 'user-name', :repo => 'repo-name'
  bitbucket.issues.create
    "title" => "Found a bug",
    "content" => "I'm having a problem with this.",
    "responsible" => "octocat",
    "milestone" => 1,
    "priority" => "blocker"