       "kind": config.kind
       "priority": config.priority
 
+    console.log @issuesUrl(config)
     # Send the request
     @bitbucketRequest(@request.post(@issuesUrl(config)), config)
       .send(qs.stringify(query_object))

  BASE_URL = "https://bitbucket.org"

  @issuesUrl: (config) ->
    "#{BASE_URL}/api/1.0/repositories/#{config.username}/#{config.repo}/issues"

  @issueUrl: (config, issueId) ->
    @issuesUrl(config) + "/" + issueId


        callback null,
          id: res.body.local_id
          url: url.resolve(BASE_URL, "#{config.repo}/issue/#{res.body.local_id}")

  @receiveEvent: (config, event, callback) ->
    if event?.trigger?.type == "reopened"
