Skip to content

Commit 9ad467f

Browse files
committed
Adds last_notes
1 parent b50a4a5 commit 9ad467f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/redmine_gtt_print/issue_to_json.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ def call
2121
@custom_fields.store(cfv.custom_field.name, cfv)
2222
end
2323

24+
pp @issue.last_notes
25+
2426
json = {
2527
layout: @layout,
2628
attributes: self.class.attributes_hash(@issue, @other_attributes, @custom_fields)
@@ -60,6 +62,7 @@ def self.attributes_hash(issue, other_attributes, custom_fields)
6062
estimated_hours: issue.estimated_hours,
6163
created_on: issue.created_on,
6264
updated_on: issue.updated_on,
65+
last_notes: issue.last_notes ? issue.last_notes : "",
6366

6467
# Custom text
6568
custom_text: other_attributes[:custom_text],

0 commit comments

Comments
 (0)