Skip to content

Commit c561474

Browse files
committed
Makes attributes match (hard-coded) with expected variables
1 parent d3f935f commit c561474

File tree

1 file changed

+23
-3
lines changed

1 file changed

+23
-3
lines changed

lib/redmine_gtt_print/issue_to_json.rb

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,28 @@ def call
3131
def self.attributes_hash(issue)
3232
{
3333
# initially "title" was part of the print template, but it has been removed.
34-
# we can configure other default values here:
35-
# title: issue.subject,
34+
id: issue.id,
35+
subject: issue.subject,
36+
description: issue.description,
37+
project_id: "TBD",
38+
project_name: "TBD",
39+
tracker_id: "TBD",
40+
tracker_name: "TBD",
41+
status_id: "TBD",
42+
status_name: "TBD",
43+
priority_id: "TBD",
44+
priority_name: "TBD",
45+
author_id: "TBD",
46+
author_name: "TBD",
47+
assigned_to_id: "TBD",
48+
assigned_to_name: "TBD",
49+
is_private: issue.is_private,
50+
start_date: issue.start_date,
51+
done_date: "TBD",
52+
estimated_hours: issue.estimated_hours,
53+
total_estimated_hours: issue.total_estimated_hours,
54+
created_on: issue.created_on,
55+
updated_on: issue.updated_on,
3656
}
3757
end
3858

@@ -76,7 +96,7 @@ def self.map_data(center, features)
7696
],
7797
scale: 25000,
7898
projection: "EPSG:3857",
79-
dpi: 72
99+
dpi: 300
80100
}
81101
end
82102

0 commit comments

Comments
 (0)