File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -157,25 +157,32 @@ $(function() {
157
157
}
158
158
} ) ;
159
159
160
+ // Handle attachemnts
161
+ requestData . attributes [ "attachments" ] = [ ] ;
160
162
if ( data . issue . attachments ) {
161
163
$ . each ( data . issue . attachments , function ( key , attachment ) {
162
164
var content_type = attachment . content_type . split ( "/" ) ; // Can be done better?
163
165
if ( content_type [ 0 ] === "image" ) {
164
166
// ToDo pass attachment information
165
- console . log ( key , attachment ) ;
167
+ requestData . attributes [ "attachments" ] . push ( attachment ) ;
166
168
}
167
169
} ) ;
168
170
}
169
171
172
+ // Handle journals (notes)
173
+ requestData . attributes [ "journals" ] = [ ] ;
170
174
if ( data . issue . journals ) {
171
175
$ . each ( data . issue . journals , function ( key , journal ) {
172
176
if ( journal . notes ) {
173
177
// ToDo pass journal information
174
- console . log ( key , journal ) ;
178
+ requestData . attributes [ "journals" ] . push ( journal ) ;
175
179
}
176
180
} ) ;
177
181
}
178
182
183
+ // Experimental
184
+ requestData . attributes [ "project" ] = data . issue . project ;
185
+
179
186
console . log ( requestData ) ;
180
187
var startTime = new Date ( ) . getTime ( ) ;
181
188
You can’t perform that action at this time.
0 commit comments