Skip to content

Instantly share code, notes, and snippets.

@gustiando
Created February 9, 2021 15:34
Show Gist options
  • Save gustiando/7321fa92df0f61e83cc9e27df6c7ede0 to your computer and use it in GitHub Desktop.
Save gustiando/7321fa92df0f61e83cc9e27df6c7ede0 to your computer and use it in GitHub Desktop.
Jira API Client Access Check
# make sure to replace 'my-host' 'my-email@host.com', 'my-jira-api-token' and 'issue-id' below with valid values
# Access check using curl
curl -v https://my-jira-host.atlassian.net/rest/api/latest/issue/issue-id --user my-email@host.com:my-jira-api-token
# Access check using node
node -e "const JiraApi = require('jira-client'); new JiraApi({protocol: 'https', host: 'my-jira-host.atlassian.net', username: 'my-email@host.com', password: 'my-jira-api-token', apiVersion: '2', strictSSL: true}).findIssue('issue-id').then((result) => console.log(result));"
# it should result in the issue information
@gustiando
Copy link
Author

A77A9F49-F224-4EF9-A722-8FF1DA51146B
A02FFB80-6C24-4EC2-8193-A3306BE4E366

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment