Skip to content

Commit

Permalink
Merge pull request #396 from rafaelsales/patch-1
Browse files Browse the repository at this point in the history
Fix README example on how to use API token obtained via Jira Cloud account settings
  • Loading branch information
SimonMiaou authored Jan 23, 2023
2 parents 6aa8fbc + e805074 commit 0745705
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,9 @@ api_token = API_TOKEN_OBTAINED_FROM_JIRA_UI
options = {
:site => 'http://mydomain.atlassian.net:443/',
:context_path => '',
:auth_type => :basic,
:default_headers => { 'Authorization' => "Bearer #{api_token}"}
:username => '<the email you sign-in to Jira>',
:password => api_token,
:auth_type => :basic
}

client = JIRA::Client.new(options)
Expand Down

0 comments on commit 0745705

Please sign in to comment.