Project

General

Profile

Adding Description Column to TimeLog Report view and CSV

Added by Marek Stepan over 4 years ago

Hello ,

so i would like to add the columnt Project -> Description to the Timelog Report View , then to have this data exported to CSV .

I was looking over the Redmine Code about 4 hours but with no result as to where or what i should edit .

Any Help Apreciated .

LG Marek Stepan


Replies (2)

RE: Adding Columnt to TimeLog Report view and CSV - Added by Marek Stepan over 4 years ago

Marek Stepan wrote:

Hello ,

so i would like to add the columnt Project -> Description to the Timelog Report View , then to have this data exported to CSV .

I was looking over the Redmine Code about 4 hours but with no result as to where or what i should edit .

Any Help Apreciated .

LG Marek Stepan

Another Picture for better understanding maybe .. Where should i look in the Files for this handler ?

In repotr.html.erb i see that the variables is available_criteria , but i cant find where this is initialized or populated to add project:description into it .

Any help anybody ;?

RE: Adding Description Column to TimeLog Report view and CSV - Added by Marek Stepan over 4 years ago

Marek Stepan wrote:

Hello ,

so i would like to add the columnt Project -> Description to the Timelog Report View , then to have this data exported to CSV .

I was looking over the Redmine Code about 4 hours but with no result as to where or what i should edit .

Any Help Apreciated .

LG Marek Stepan

I looked trought the code the past two days , i think im on the right track but kinda stuck , the Report Variable is being created in timelog_controller.rb like this

@report = Redmine::Helpers::TimeReport.new(@project, @issue, params[:criteria], params[:columns], scope)

this is then being used in the various functions export to csv and in the report.html.erb file to generate the drop down list with right of details in report view .
As of this i believe i have to add Descriptions to the params[:criteria] array. ( or only to :criteria ? i dont know where :criteria is initliazed did not find that out till now )

But im not quite sure how this should be done properly as im illiterate in Ruby .

Any Help is Apreciated .

LG Marek Stepan

    (1-2/2)