Preliminary jira api tools 30/15430/9
authorAric Gardner <agardner@linuxfoundation.org>
Fri, 26 Apr 2019 22:19:19 +0000 (18:19 -0400)
committerAric Gardner <agardner@linuxfoundation.org>
Fri, 21 Jun 2019 18:29:27 +0000 (14:29 -0400)
commit824e73e0c6d7c92aa156238aebff25e2071b3ce9
tree66b243b5a4ca1e404c95c70826c7f772315a8ee2
parent8e4cfd42d3fbe974c98aebb52d491c8d84050e03
Preliminary jira api tools

This code does not work with AUTH-zero

Each AUTH0 jira will need to have an application link
created.

docs for oauth/creating an application link:
https://developer.atlassian.com/server/jira/platform/oauth/

working code for oauth:
https://gist.github.com/Aricg/1e65cc3e4dde3ce23f30ee414a11c469

Given that we are moving everything to oauth
I will probably rewrite this with the python jira library.

https://github.com/pycontribs/jira

Commands:
create-project
set-owner (ldap group that is owner for a project)
get

lftools jira get is needed to find the values for
create-project and set-owner

For example: to set owner for a project
in opnfv the Administrators group is 1002
this is probably the default, but I have to check all the
jiras first. at least if your project adds ldap groups as
jira-devlopers you can adapt this to 1001 or whatever

This is implemented with basic auth, base64 encoded in the
lftools config file [jira] section
echo -n "user:pass" | base64

example:
[jira]
base64 = dXNlcjpwYXNzd29yZGZvbw==

ISSUE: RELENG-1525

Change-Id: I6efbf15e3be0d9389a995d7674ea4b18ee2f0f0f
Signed-off-by: Aric Gardner <agardner@linuxfoundation.org>
docs/commands/index.rst
docs/commands/jira.rst [new file with mode: 0644]
lftools/cli/__init__.py
lftools/cli/jira.py [new file with mode: 0644]
releasenotes/notes/jira-b4fcd20dc6f9e724.yaml [new file with mode: 0644]