Skip to content

Commit 3bd4b62

Browse files
committed
Preapre attachments and journals
1 parent d710a74 commit 3bd4b62

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

assets/javascripts/gtt_print.js

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,25 @@ $(function() {
157157
}
158158
});
159159

160+
if (data.issue.attachments) {
161+
$.each(data.issue.attachments, function (key,attachment) {
162+
var content_type = attachment.content_type.split("/"); // Can be done better?
163+
if (content_type[0] === "image") {
164+
// ToDo pass attachment information
165+
console.log(key,attachment);
166+
}
167+
});
168+
}
169+
170+
if (data.issue.journals) {
171+
$.each(data.issue.journals, function (key,journal) {
172+
if (journal.notes) {
173+
// ToDo pass journal information
174+
console.log(key,journal);
175+
}
176+
});
177+
}
178+
160179
console.log(requestData);
161180
var startTime = new Date().getTime();
162181

0 commit comments

Comments
 (0)