Skip to content

Commit 0745705

Browse files
authored
Merge pull request #396 from rafaelsales/patch-1
Fix README example on how to use API token obtained via Jira Cloud account settings
2 parents 6aa8fbc + e805074 commit 0745705

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,8 +148,9 @@ api_token = API_TOKEN_OBTAINED_FROM_JIRA_UI
148148
options = {
149149
:site => 'http://mydomain.atlassian.net:443/',
150150
:context_path => '',
151-
:auth_type => :basic,
152-
:default_headers => { 'Authorization' => "Bearer #{api_token}"}
151+
:username => '<the email you sign-in to Jira>',
152+
:password => api_token,
153+
:auth_type => :basic
153154
}
154155

155156
client = JIRA::Client.new(options)

0 commit comments

Comments
 (0)