User:Technical 13/SandBox/Gadget-BugStatusUpdate.js/sandbox.js: Difference between revisions
Content deleted Content added
Technical 13 (talk | contribs) Let's put the creation of the function up top, and then call it at the bottom. |
Technical 13 (talk | contribs) Let's see what is returned and what the ids array looks like. |
||
Line 64:
}
}
}/
error: function( data ){
/* Using this string with 49741 being a ticket I can't see:
https://bugzilla.wikimedia.org/jsonrpc.cgi?method=Bug.get&id=158¶ms=[{%20%22ids%22:%20[35810,35909,300,48745,49741,54598],%22include_fields%22:[%22last_change_time%22,%22status%22,%20%22id%22,%20%22summary%22]}]
returns:
{"error":{"message":"You are not authorized to access bug #49741. To see this bug, you must first log in to an account with the appropriate permissions.","code":102},"id":"158","result":null}
*/
console.error( 'Raw data: %o', data );
console.error( 'id array: %o', ids )
});
}
|