Skip to content

Commit ed058e4

Browse files
0xW1sKygonchikKyle burk
authored
Insight for jira module (atlassian-api#970)
* added simple wrapper * [Insight] Update to support Cloud (atlassian-api#954) * Add initial insight cloud capabilities * Update existing funcitons for cloud api Co-authored-by: Kyle burk <kyle.burk@archerirm.com> * [Insight] Add Insight methods and update docs * update readme * resolve pep257 style checks * Fix linting issues * [Insight] Adding More Methods (atlassian-api#965) * [Insight] Add Insight methods and update docs * update readme * resolve pep257 style checks * Fix linting issues * fix d213 * Attempt at fix for python 3.6 and 3.7 runner * reduce change and modify order of operations * focus on krb5 fix * focus on krb5 fix * target 3.7 * better targeting * fi * test * test wihtout reinstall * fix logic error * test with utils * fix compare * pipeline fix for python 3.6 & 3.7 * ugly but functional Co-authored-by: Gonchik Tsymzhitov <gonchik.tsymzhitov@gmail.com> Co-authored-by: Kyle burk <kyle.burk@archerirm.com>
1 parent c03332b commit ed058e4

File tree

4 files changed

+277
-18
lines changed

4 files changed

+277
-18
lines changed

CONTRIBUTING.rst

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Getting Started
1616
* Start up related product:
1717
- Standalone product atlas-run-standalone_
1818
- For cloud product, just do registration
19-
* Run the quality checks with `make qa` or if you have docker installed with `make docker-qa`
19+
* Run the quality checks with `make qa` or if you have docker installed with `make docker-qa`
2020
* Send pull request
2121

2222
.. _Fork: https://help.github.com/articles/fork-a-repo/
@@ -110,6 +110,9 @@ All methods based on docs from: https://developer.atlassian.com/docs/
110110
* Advanced Roadmaps (formerly Portfolio for Jira)
111111
- `Portfolio for Jira`_
112112
- `Portfolio for Jira Teams`_
113+
* Insight
114+
_`Insight Server`_
115+
_`Insight Cloud`_
113116
* Bitbucket:
114117
- https://developer.atlassian.com/server/bitbucket/reference/rest-api/
115118
- https://developer.atlassian.com/server/bitbucket/how-tos/command-line-rest/
@@ -140,7 +143,8 @@ All methods based on docs from: https://developer.atlassian.com/docs/
140143
.. _`Jira Service Desk Server`: https://docs.atlassian.com/jira-servicedesk/REST/server
141144
.. _`Portfolio for Jira Teams`: https://docs.atlassian.com/portfolio-for-jira-server/REST/2.13.0/teams/
142145
.. _`Portfolio for Jira`: https://docs.atlassian.com/portfolio-for-jira-server/REST/2.13.0/jpo/
143-
146+
.. _`Insight Server`: https://insight-javadoc.riada.io/insight-javadoc-8.6/insight-rest/
147+
.. _`Insight Cloud`: https://developer.atlassian.com/cloud/insight/rest/api-group-objectschema/#api-objectschema-list-get
144148

145149
Credits
146150
-------

Dockerfile.qa

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,23 @@ RUN apt-get update
1515
RUN apt-get install -y apt-utils
1616

1717
# Install python development
18-
RUN apt-get install -y python$PYTHON_VERSION-dev python3-pip
18+
RUN apt-get install -y \
19+
python$PYTHON_VERSION-dev \
20+
python3-pip
1921

2022
# install distutils.util
21-
RUN if [ $PYTHON_VERSION != '3.10' ] ; then \
22-
apt-get install -y python3-distutils python3-distutils-extra python3-apt --reinstall ; \
23-
else \
24-
apt-get install -y python$PYTHON_VERSION-distutils python3-distutils-extra python3-apt --reinstall ; \
25-
curl -sS https://bootstrap.pypa.io/get-pip.py | python3.10 ; \
26-
fi
23+
RUN if [ $PYTHON_VERSION = '3.7' ] ; then \
24+
apt-get install -y python$PYTHON_VERSION-distutils python3-distutils-extra python3-apt --reinstall ;\
25+
elif [ $PYTHON_VERSION = '3.6' ] ; then \
26+
apt-get install -y python$PYTHON_VERSION-distutils python3-distutils-extra python3-apt --reinstall ;\
27+
elif [ $PYTHON_VERSION != '3.10' ] ; then \
28+
apt-get install -y python3-distutils python3-distutils-extra python3-apt --reinstall ; \
29+
else \
30+
apt-get install -y python$PYTHON_VERSION-distutils python3-distutils-extra python3-apt --reinstall ; \
31+
curl -sS https://bootstrap.pypa.io/get-pip.py | python3.10 ; \
32+
fi
33+
34+
# Register the version in alternatives
2735
RUN update-alternatives --install /usr/bin/python3 python3 /usr/bin/python$PYTHON_VERSION 1
2836

2937
# Install kerberos development

README.rst

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ Also, you can use the Bitbucket module e.g. for getting project list
7777
url='http://localhost:7990',
7878
username='admin',
7979
password='admin')
80-
80+
8181
data = bitbucket.project_list()
8282
print(data)
8383
@@ -92,10 +92,25 @@ Example to get your requests:
9292
url='http://localhost:7990',
9393
username='admin',
9494
password='admin')
95-
95+
9696
data = sd.get_my_customer_requests()
9797
print(data)
9898
99+
Using Insight (CMDB Tool for Jira):
100+
101+
.. code-block:: python
102+
103+
from atlassian import Insight
104+
105+
insight = Insight(
106+
url='http://localhost:7990',
107+
username='admin',
108+
password='admin')
109+
110+
data = insight.get_object(88)
111+
print(data)
112+
113+
99114
Using Xray (Test Management tool for Jira):
100115

101116
.. code-block:: python
@@ -106,7 +121,7 @@ Using Xray (Test Management tool for Jira):
106121
url='http://localhost:7990',
107122
username='admin',
108123
password='admin')
109-
124+
110125
data = xr.get_tests('TEST-001')
111126
print(data)
112127

0 commit comments

Comments
 (0)