mikebowler / jirametrics

A tool to extract data from Jira and either generate reports or export to CSV files
Apache License 2.0
34 stars 1 forks source link

project.download_config.run error #24

Closed richllews closed 4 months ago

richllews commented 4 months ago

Hi - every time i try to run i get the following error - any idea what i am doing wrong?

Downloading linked issues for board 1132 Downloaded 1-4 of 4 issues to metrics/Scrum Board_issues/ /usr/local/lib/ruby/gems/3.2.0/gems/jirametrics-2.0.1/lib/jirametrics/exporter.rb:53:in block (2 levels) in download': undefined methodrun' for nil:NilClass (NoMethodError)

    project.download_config.run
                           ^^^^
from /usr/local/lib/ruby/gems/3.2.0/gems/jirametrics-2.0.1/lib/jirametrics/exporter.rb:67:in `block in each_project_config'
from /usr/local/lib/ruby/gems/3.2.0/gems/jirametrics-2.0.1/lib/jirametrics/exporter.rb:66:in `each'
from /usr/local/lib/ruby/gems/3.2.0/gems/jirametrics-2.0.1/lib/jirametrics/exporter.rb:66:in `each_project_config'
from /usr/local/lib/ruby/gems/3.2.0/gems/jirametrics-2.0.1/lib/jirametrics/exporter.rb:49:in `block in download'
from /usr/local/lib/ruby/gems/3.2.0/gems/jirametrics-2.0.1/lib/jirametrics/exporter.rb:45:in `open'
from /usr/local/lib/ruby/gems/3.2.0/gems/jirametrics-2.0.1/lib/jirametrics/exporter.rb:45:in `download'
from /usr/local/lib/ruby/gems/3.2.0/gems/jirametrics-2.0.1/lib/jirametrics.rb:27:in `go'
from /usr/local/lib/ruby/gems/3.2.0/gems/thor-1.2.2/lib/thor/command.rb:27:in `run'
from /usr/local/lib/ruby/gems/3.2.0/gems/thor-1.2.2/lib/thor/invocation.rb:127:in `invoke_command'
from /usr/local/lib/ruby/gems/3.2.0/gems/thor-1.2.2/lib/thor.rb:392:in `dispatch'
from /usr/local/lib/ruby/gems/3.2.0/gems/thor-1.2.2/lib/thor/base.rb:485:in `start'
from /usr/local/lib/ruby/gems/3.2.0/gems/jirametrics-2.0.1/bin/jirametrics:5:in `<top (required)>'
from /usr/local/opt/ruby/bin/jirametrics:25:in `load'
from /usr/local/opt/ruby/bin/jirametrics:25:in `<main>'
mikebowler commented 4 months ago

I'm guessing that you have multiple projects and that after downloading "Scrum Board", it's moved on to the next one and that's the one that's failing. Can I see your config file?

Feel free to email it to mbowler@gargoylesoftware.com if you don't want your config in a GitHub issue.

mikebowler commented 4 months ago

Conversation has continued via email but for anyone searching later... A couple of issues have been identified that will be fixed in the next version (2.1)

mikebowler commented 4 months ago

2.1, with the above changes plus much more, has been deployed.

mikebowler commented 4 months ago

I believe the problems identified in this ticket are addressed in 2.1.1 so I'm going to close this ticket. If you don't agree then let me know.