```coffeescript
NotificationPlugin = require "../../notification-plugin"

class PivotalTracker extends NotificationPlugin
  stacktraceLines = (stacktrace) ->
    ("#{line.file}:#{line.lineNumber} - #{line.method}" for line in stacktrace when line.inProject)

  @receiveEvent: (config, event) ->
    # Build the request
    params =
      "story[name]": "#{event.error.exceptionClass} in #{event.error.context}"
      "story[story_type]": "bug"
      "story[labels]": "bugsnag"
      "story[description]":      
        """
        *#{event.error.exceptionClass}* in *#{event.error.context}*
        #{event.error.message if event.error.message}
        #{event.error.url}

        *Stacktrace:*
        #{stacktraceLines(event.error.stacktrace).join("\n")}
        """

    # Send the request to the url
    @request
      .post("http://www.pivotaltracker.com/services/v3/projects/#{config.projectId}/stories")
      .set("X-TrackerToken", config.apiToken)
      .type("form")
      .send(params)
      .buffer(true)
      .end((res) ->
        if res?.text
          console.log res.text
        else
          console.log "No response from pivotal! Status #{res.status}"
      );

module.exports = PivotalTracker```

Use https for pivotal plugin
user
```coffeescript
NotificationPlugin = require "../../notification-plugin"

class PivotalTracker extends NotificationPlugin
  stacktraceLines = (stacktrace) ->
    ("#{line.file}:#{line.lineNumber} - #{line.method}" for line in stacktrace when line.inProject)

  @receiveEvent: (config, event) ->
    # Build the request
    params =
      "story[name]": "#{event.error.exceptionClass} in #{event.error.context}"
      "story[story_type]": "bug"
      "story[labels]": "bugsnag"
      "story[description]":      
        """
        *#{event.error.exceptionClass}* in *#{event.error.context}*
        #{event.error.message if event.error.message}
        #{event.error.url}

        *Stacktrace:*
        #{stacktraceLines(event.error.stacktrace).join("\n")}
        """

    # Send the request to the url
    @request
      .post("https://www.pivotaltracker.com/services/v3/projects/#{config.projectId}/stories")
      .set("X-TrackerToken", config.apiToken)
      .type("form")
      .send(params)
      .buffer(true)
      .end((res) ->
        if res && res.status != 200
          console.log "Status code: #{res.status}"
          console.log res.text || "No response from pivotal!"
      );

module.exports = PivotalTracker```
assistant