-
Notifications
You must be signed in to change notification settings - Fork 411
Connecting with Basic Auth
Robert Brodie edited this page Apr 27, 2024
·
1 revision
A simple method to connect the gem to your Jira instance is to create an API token.
- In Jira, click your avatar in the top right corner and choose Manage account
- On the Profile and visibility screen, navigate to the Security tab
- Under the API tokens heading, choose Create and manage API tokens
- Click the Create API token button
- Enter a label to name your token
- Click the Create button
- Copy the token presented in the Your new API token modal and store securely
options = {
username: '<Email address of the user the token was created against>',
password: '<API token>',
site: 'https://<subdomain>.atlassian.net/',
context_path: '',
auth_type: :basic
}
client = JIRA::Client.new(options)