Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Gustavo Matias gumatias

🏠
Working from home
View GitHub Profile
View quickstart.py
# Copyright 2018 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
@gumatias
gumatias / jira-api-access-check.sh
Created Feb 9, 2021
Jira API Client Access Check
View jira-api-access-check.sh
# 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