Skip to content

Insight for jira module #970

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 24 commits into from
May 9, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions CONTRIBUTING.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Getting Started
* Start up related product:
- Standalone product atlas-run-standalone_
- For cloud product, just do registration
* Run the quality checks with `make qa` or if you have docker installed with `make docker-qa`
* Run the quality checks with `make qa` or if you have docker installed with `make docker-qa`
* Send pull request

.. _Fork: https://help.github.com/articles/fork-a-repo/
Expand Down Expand Up @@ -110,6 +110,9 @@ All methods based on docs from: https://developer.atlassian.com/docs/
* Advanced Roadmaps (formerly Portfolio for Jira)
- `Portfolio for Jira`_
- `Portfolio for Jira Teams`_
* Insight
_`Insight Server`_
_`Insight Cloud`_
* Bitbucket:
- https://developer.atlassian.com/server/bitbucket/reference/rest-api/
- https://developer.atlassian.com/server/bitbucket/how-tos/command-line-rest/
Expand Down Expand Up @@ -140,7 +143,8 @@ All methods based on docs from: https://developer.atlassian.com/docs/
.. _`Jira Service Desk Server`: https://docs.atlassian.com/jira-servicedesk/REST/server
.. _`Portfolio for Jira Teams`: https://docs.atlassian.com/portfolio-for-jira-server/REST/2.13.0/teams/
.. _`Portfolio for Jira`: https://docs.atlassian.com/portfolio-for-jira-server/REST/2.13.0/jpo/

.. _`Insight Server`: https://insight-javadoc.riada.io/insight-javadoc-8.6/insight-rest/
.. _`Insight Cloud`: https://developer.atlassian.com/cloud/insight/rest/api-group-objectschema/#api-objectschema-list-get

Credits
-------
Expand Down
22 changes: 15 additions & 7 deletions Dockerfile.qa
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,23 @@ RUN apt-get update
RUN apt-get install -y apt-utils

# Install python development
RUN apt-get install -y python$PYTHON_VERSION-dev python3-pip
RUN apt-get install -y \
python$PYTHON_VERSION-dev \
python3-pip

# install distutils.util
RUN if [ $PYTHON_VERSION != '3.10' ] ; then \
apt-get install -y python3-distutils python3-distutils-extra python3-apt --reinstall ; \
else \
apt-get install -y python$PYTHON_VERSION-distutils python3-distutils-extra python3-apt --reinstall ; \
curl -sS https://bootstrap.pypa.io/get-pip.py | python3.10 ; \
fi
RUN if [ $PYTHON_VERSION = '3.7' ] ; then \
apt-get install -y python$PYTHON_VERSION-distutils python3-distutils-extra python3-apt --reinstall ;\
elif [ $PYTHON_VERSION = '3.6' ] ; then \
apt-get install -y python$PYTHON_VERSION-distutils python3-distutils-extra python3-apt --reinstall ;\
elif [ $PYTHON_VERSION != '3.10' ] ; then \
apt-get install -y python3-distutils python3-distutils-extra python3-apt --reinstall ; \
else \
apt-get install -y python$PYTHON_VERSION-distutils python3-distutils-extra python3-apt --reinstall ; \
curl -sS https://bootstrap.pypa.io/get-pip.py | python3.10 ; \
fi

# Register the version in alternatives
RUN update-alternatives --install /usr/bin/python3 python3 /usr/bin/python$PYTHON_VERSION 1

# Install kerberos development
Expand Down
21 changes: 18 additions & 3 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ Also, you can use the Bitbucket module e.g. for getting project list
url='http://localhost:7990',
username='admin',
password='admin')

data = bitbucket.project_list()
print(data)

Expand All @@ -92,10 +92,25 @@ Example to get your requests:
url='http://localhost:7990',
username='admin',
password='admin')

data = sd.get_my_customer_requests()
print(data)

Using Insight (CMDB Tool for Jira):

.. code-block:: python

from atlassian import Insight

insight = Insight(
url='http://localhost:7990',
username='admin',
password='admin')

data = insight.get_object(88)
print(data)


Using Xray (Test Management tool for Jira):

.. code-block:: python
Expand All @@ -106,7 +121,7 @@ Using Xray (Test Management tool for Jira):
url='http://localhost:7990',
username='admin',
password='admin')

data = xr.get_tests('TEST-001')
print(data)

Expand Down
Loading