Skip to content
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

Telefonica jira update #358

Open
wants to merge 34 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
3301e72
feat: Add JIRA dependency and server context manager
KarimJesusGalvez Dec 16, 2022
d412c6c
Updated jira log statements
KarimJesusGalvez Apr 29, 2023
aa9dd98
Refactor, switched Jira-API calls To Jira dependency
KarimJesusGalvez Apr 30, 2023
4354298
Feat: added upload output to jira
KarimJesusGalvez Apr 30, 2023
ec131fb
Docs: Jira module
KarimJesusGalvez Apr 30, 2023
17362cc
Refactor: enabled jira create execution and transition
KarimJesusGalvez Apr 30, 2023
b94eb44
Refactor: log jira error stack trace
KarimJesusGalvez Apr 30, 2023
d2ad14b
Refactor: jira labels
KarimJesusGalvez Apr 30, 2023
4b2d792
Feat: added check jira args
KarimJesusGalvez Apr 30, 2023
af9b665
Feat: jira, create test execution added all remaining fields
KarimJesusGalvez Apr 30, 2023
cf8cf24
Feat: jira, added jira_key and jira_name as project identifiers
KarimJesusGalvez Apr 30, 2023
65ec24c
Fix: jira, added jira_key and jira_name as project identifiers
KarimJesusGalvez May 5, 2023
ee89523
Add jira connection unit tests
KarimJesusGalvez Jun 26, 2023
924b56e
Merge branch 'master_telefonica' into telefonica_jira_update
KarimJesusGalvez Jun 26, 2023
56be053
Fix, changed jira dependency for python 3.7 compatibility
KarimJesusGalvez Jun 26, 2023
388a11d
Update, Jira docs
KarimJesusGalvez Jun 26, 2023
05306e0
Refactor, Jira check args
KarimJesusGalvez Jun 26, 2023
c84bbfe
Fix, Jira check project
KarimJesusGalvez Jun 26, 2023
8fb5ab3
Refactor, Jira check fix_version
KarimJesusGalvez Jun 26, 2023
5a9a0da
Added, Jira check fix_version tests
KarimJesusGalvez Jun 26, 2023
3ba445c
Added, Jira comments to execution if any
KarimJesusGalvez Jun 28, 2023
032b598
Minor Refactor Jira Readme
KarimJesusGalvez Jun 28, 2023
b20b8ac
Minor Refactor jira
KarimJesusGalvez Jun 28, 2023
2645046
Fix , Jira add screenshot call
KarimJesusGalvez Jun 28, 2023
ea11eea
Minor fix, typehints for python 3.7
KarimJesusGalvez Jun 28, 2023
352e9bc
Fix, jira id config params
KarimJesusGalvez Jun 29, 2023
a63a82a
Fix, jira Tests
KarimJesusGalvez Jun 29, 2023
02041d2
Fix, jira Tests
KarimJesusGalvez Jun 29, 2023
ac8d963
Merge remote-tracking branch 'origin/telefonica_jira_update' into tel…
KarimJesusGalvez Jun 29, 2023
5bd363e
Fix, named temp file in jira Tests
KarimJesusGalvez Jun 29, 2023
b793468
Refactor, Jira codeclimate recomendations
KarimJesusGalvez Jun 29, 2023
546ef33
Minor fix + refactor Jira methods
KarimJesusGalvez Jun 29, 2023
52cc59f
Minor refactor Jira
KarimJesusGalvez Jun 29, 2023
b8045db
Merge branch 'Telefonica:master' into telefonica_jira_update
KarimJesusGalvez Jul 7, 2023
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
60 changes: 60 additions & 0 deletions docs/Jira.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
Jira Configuration
====================

First of all Jira must be enabled by setting the enabled property to true in config.cfg::

[Jira]
enabled: true

The rest of the properties can be configured as:

token: The OAuth token for the Jira account, can be created in Jira web page > Profile > Personal access tokens

Project data in order of preference:

- project_id: The project id, ,can be seen in Jira web page > Administration > Projects > The Edit html anchor href will have a pid= segment with the project id

- project_key: The shortened project upper case identifier that appears in the issues ids, see example below

- project_name: Full project name

- execution_url: The root server URL, see example below

Note: if the project cannot be located, available project for your user will be printed in toolium.log

onlyifchanges: true if previous state of the updated issues is similar true will force the update, false will omit it

summary_prefix: # TODO

fixversion: The fixversion field, see example below

labels: List of labels to be added

comments: A comment to be added in each of the test executions

build: Inactive field # TODO Pending field value confirmation

Full example::

[Jira]
enabled: true
token: My OAuth token
project_id: 12316620
project_key: COMMONSRDF
project_name: Apache Commons RDF
execution_url: https://jira.atlassian.com
onlyifchanges: true
summary_prefix: [DEV][QA]
fixversion: 4.12
labels: [QA, label2, 3rdlabel]
comments: "A new comment for the execution"

See `https://jira.readthedocs.io`_ for the complete Package documentation.

Jira API
====================

See request module for REST API calls `https://requests.readthedocs.io/en/latest/`_
And the json parsing module `https://docs.python.org/3/library/json.html`_
See `https://developer.atlassian.com/server/jira/platform/rest-apis/`_ for the the underlying API introduction.
And `https://docs.atlassian.com/software/jira/docs/api/REST/9.5.0/`_ for the underlying API full documentation.
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ screeninfo~=0.8
lxml~=4.9
Faker~=18.3
phonenumbers~=8.13
jira==3.2.0
Loading