Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
@gumatias

This comment has been minimized.

Copy link
Owner Author

@gumatias gumatias commented Feb 9, 2021

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