File tree Expand file tree Collapse file tree 1 file changed +34
-0
lines changed Expand file tree Collapse file tree 1 file changed +34
-0
lines changed Original file line number Diff line number Diff line change @@ -66,6 +66,40 @@ def self.attributes_hash(issue, other_attributes)
66
66
# priority: (IssuePriority.find issue.priority_id),
67
67
# author: (User.find issue.author_id),
68
68
# assigned_to: (User.find issue.assigned_to_id),
69
+
70
+ # custom_fields: issue.visible_custom_field_values.map {|cfv|
71
+ # {
72
+ # id: cfv.custom_field.id,
73
+ # name: cfv.custom_field.name,
74
+ # multiple: cfv.custom_field.multiple?,
75
+ # value: cfv.value
76
+ # }
77
+ # },
78
+ # journals: issue.visible_journals_with_index.map{|j|
79
+ # {
80
+ # user: { login: j.user&.login, id: j.user&.id, name: j.user&.name },
81
+ # notes: j.notes,
82
+ # created_on: j.created_on,
83
+ # details: j.visible_details.map{|d|
84
+ # {
85
+ # property: d.property,
86
+ # name: d.prop_key,
87
+ # old_value: d.old_value,
88
+ # new_value: d.new_value
89
+ # }
90
+ # }
91
+ # }
92
+ # },
93
+ # attachments: issue.attachments.map{|a|
94
+ # {
95
+ # id: a.id,
96
+ # filename: a.filename,
97
+ # filesize: a.filesize,
98
+ # content_type: a.content_type,
99
+ # description: a.description,
100
+ # content_url: nil, # this is a bit more complex as we do not have access to URL generation methods here.
101
+ # }
102
+ # }
69
103
}
70
104
end
71
105
You can’t perform that action at this time.
0 commit comments