@@ -30,29 +30,39 @@ def call
30
30
31
31
def self . attributes_hash ( issue )
32
32
{
33
- # initially "title" was part of the print template, but it has been removed.
34
33
id : issue . id ,
35
34
subject : issue . subject ,
35
+ project_id : issue . project_id ,
36
+ project_name : "WIP" ,
37
+ tracker_id : issue . tracker_id ,
38
+ tracker_name : "WIP" ,
39
+ status_id : issue . status_id ,
40
+ status_name : "WIP" ,
41
+ priority_id : issue . priority_id ,
42
+ priority_name : "WIP" ,
43
+ # category_id: issue.category_id,
44
+ author_id : issue . author_id ,
45
+ author_name : "WIP" ,
46
+ assigned_to_id : issue . assigned_to_id ,
47
+ assigned_to_name : "WIP" ,
36
48
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
49
is_private : issue . is_private ,
50
50
start_date : issue . start_date ,
51
- done_date : "TBD" ,
51
+ done_date : issue . closed_on ,
52
+ # due_date: issue.due_date,
52
53
estimated_hours : issue . estimated_hours ,
53
- total_estimated_hours : issue . total_estimated_hours ,
54
+ total_estimated_hours : "WIP" ,
54
55
created_on : issue . created_on ,
55
56
updated_on : issue . updated_on ,
57
+
58
+ # Experimental
59
+ # issue: issue,
60
+ # project: (Project.find issue.project_id),
61
+ # tracker: (Tracker.find issue.tracker_id),
62
+ # status: (Status.find issue.status_id),
63
+ # priority: (Priority.find issue.priority_id),
64
+ # author: (Author.find issue.author_id),
65
+ # assigned_to: (Assigned_to.find issue.assigned_to_id),
56
66
}
57
67
end
58
68
@@ -96,7 +106,7 @@ def self.map_data(center, features)
96
106
] ,
97
107
scale : 25000 ,
98
108
projection : "EPSG:3857" ,
99
- dpi : 300
109
+ dpi : 144
100
110
}
101
111
end
102
112
0 commit comments