Created
February 9, 2021 15:34
-
-
Save gustiando/7321fa92df0f61e83cc9e27df6c7ede0 to your computer and use it in GitHub Desktop.
Jira API Client Access Check
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# make sure to replace 'my-host' '[email protected]', '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 [email protected]: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: '[email protected]', password: 'my-jira-api-token', apiVersion: '2', strictSSL: true}).findIssue('issue-id').then((result) => console.log(result));" | |
# it should result in the issue information |
Author
gustiando
commented
Feb 9, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment