Skip to content
Browse files

added the option to print the content of the custom "pairs" tag to th…

…e csv output
  • Loading branch information...
1 parent 3e629d4 commit 521ba2829baaffa6a001868bad23f174efd6d5be Eduardo Maçan committed
Showing with 11 additions and 1 deletion.
  1. +11 −1 itertasks
View
12 itertasks
@@ -65,6 +65,7 @@ options = OpenStruct.new
options.pdffile = "output.pdf"
options.csvfile = "output.csv"
options.csvoutput = false
+options.csvoutputpairs = false
options.pdfouput = false
options.iteration = ""
options.story = ""
@@ -91,6 +92,10 @@ opts.on('-p[=file]','--pdf[=file]','Creates a printable PDF TaskBook') do |file|
options.pdfoutput = true
end
+opts.on('-d','--devs','adds the content of the "pairs" custom field to the csv file') do |file|
+ options.csvoutputpairs = true
+end
+
opts.on('-U username','--user=username','Provides a Rally User') do |user|
options.user = user
end
@@ -155,7 +160,12 @@ stories.each do |story|
end
if options.csvoutput then
- csv << [story.formatted_i_d,task.formatted_i_d,task.name]
+ if not options.csvoutputpairs
+ csv << [story.formatted_i_d,task.formatted_i_d,task.name]
+ else
+ csv << [story.formatted_i_d,task.formatted_i_d,task.name,task.pair]
+ end
+
end
if !(options.csvoutput or options.pdfoutput) then

0 comments on commit 521ba28

Please sign in to comment.
Something went wrong with that request. Please try again.