Skip to content

Instantly share code, notes, and snippets.

@dbenchi
Last active July 13, 2017 09:41
Show Gist options
  • Save dbenchi/4151c1ccca7fc9181e31ddf678f1e516 to your computer and use it in GitHub Desktop.
Save dbenchi/4151c1ccca7fc9181e31ddf678f1e516 to your computer and use it in GitHub Desktop.
axios.request({
method: 'get',
/*
* JIRA_ISSUE = the JIRA issue that we get from the previous call
*/
url: `${JIRA_URL}/rest/api/2/issue/${JIRA_ISSUE.id}/?fields=attachment,comment`,
auth: {
username: JIRA_ACCOUNT.username,
password: JIRA_ACCOUNT.password
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment