url: '/rest/api/2/issue/' + issueId + '/attachments/',
type: 'POST',
data: formData,
processData: false,
contentType: false,
beforeSend: function (request) {
request.setRequestHeader("X-Atlassian-Token", "nocheck");
},
--
You received this message because you are subscribed to the Google Groups "Atlassian Connect Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to atlassian-connec...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
addon.authenticate(),function(req, res) {var httpClient = addon.httpClient(req);httpClient.get( '/rest/api/2/issue/10000', function(err, res, body) {console.log('Proxy Response: ', res );});}
To unsubscribe from this group and stop receiving emails from it, send an email to atlassian-connect-dev+unsub...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to atlassian-connec...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to atlassian-connect-dev+unsubscri...@googlegroups.com.
AP.request() is not bound to permission scopes because it operates as the logged in user -- user impersonation is not possible with AP.request().
Re: your second question... Are you trying to call JIRA from the server? There's a few examples on the connect-express readme of how to use addon.httpClient() to make oauth signed requests back up to the host... https://bitbucket.org/atlassian/atlassian-connect-express
Rich
To unsubscribe from this group and stop receiving emails from it, send an email to atlassian-connec...@googlegroups.com.
Ah right. Protip: if you need to debug the http client, set the NODE_DEBUG=request env variable to see all the raw traffic.
Rich
To unsubscribe from this group and stop receiving emails from it, send an email to atlassian-connec...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to atlassian-connec...@googlegroups.com.