Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Hints

...

Code Block
> jira-client createoauth
Request token recieved, please authorize me in the Browser via the following URL:
https://jira.mydomain.com/plugins/servlet/oauth/authorize?oauth_token=60uUqPdN237z3qjOCafLeNWHJHO2g6zw

Have you authorized me? (Y/n) 

--(Manual authentication in browser)--

> Y

{'oauth_token': 'yPpXwNyWeLpc923qIpKvMLCabVqztb28', 'oauth_token_secret': 'uDtPg6ePeKWG9JsNZZblubAWfnwbCoNl', 'oauth_expires_in': '157680000', 'oauth_session_handle': 'bmF8KVnnF2AMwUX6AAZ8P5Oc3WtS0b5A', 'oauth_authorization_expires_in': '160272000'}
Save OAuth Token to user or global config, or none (u/g/n)? 
Alternatively, enter a custom absolute file path(starting with /):

> u


Installation & configuration tips

Apt sources

http://deb.clazzes.org/any/sources.list.d/any/any-xpkg-1.list

http://deb.clazzes.org/any/sources.list.d/any/any-pytools-1.list

OAuth token creation

See https://developer.atlassian.com/server/jira/platform/oauth/

But not all fields in step 3 of "Create an application link" are irrelevant ;-)

Sample cnf

Code Block
titlejira-client.cnf example
collapsetrue
[CLI]
username = jdoe
#password = myPass
baseurl = https://jira.company.test/

privatekeylocation=/etc/jira-client/jira_privatekey.pem
consumerkey=OauthKey
consumersecret=secret

oauthtoken=Q.....a
auth=OAUTH
oauthsecrettoken=4....Y