hi i’m quite new to this so i need some help on figuring out how to go about this.
I am trying to create a widget on Dashing that will extract data from Icescrum and update a specific widget.
The thing is i found info on how to program jira so i’ve been trying to mess around with it to make it work with icescrum but with no luck.
some help would be appreciated
i tried this one
require 'uri'
SCHEDULER.every '2s', :first_in => 0 do |job|
uri = URI.parse(mycompany.ca)
http = Net::HTTP.new(uri.host, uri.port)
req = Net::HTTP::GET.new ("http://mycompany:8080/icescrum/ws/p/EP/sprint/198")
req.basic_auth username, password
response = http.request(req)
issuesinProgress = JSON.parse(response.body)["total"]
send_event('synergy', value: issuesinProgress)
end
and this is the error:
scheduler caught exception:
undefined local variable or method `
mycompany’ for main:Object
/home/administrator/dashboard/jobs/sample.rb:21:in `
block in <top (required)>’
/var/lib/gems/1.9.1/gems/rufus-scheduler-2.0.24/lib/rufus/sc/jobs.rb:230:in`call’
/var/lib/gems/1.9.1/gems/rufus-scheduler-2.0.24/lib/rufus/sc/jobs.rb:230:in`trigger_block’
/var/lib/gems/1.9.1/gems/rufus-scheduler-2.0.24/lib/rufus/sc/jobs.rb:204:in`block in trigger’
/var/lib/gems/1.9.1/gems/rufus-scheduler-2.0.24/lib/rufus/sc/scheduler.rb:430:in`call’
/var/lib/gems/1.9.1/gems/rufus-scheduler-2.0.24/lib/rufus/sc/scheduler.rb:430:in`block in trigger_job’
================================================================================