JIRA Connector
Project description
JIRA Connector
This module adds Jira synchronization feature. It works with Jira Cloud by behaving as an Atlassian Connect App.
Table of contents
Installation
You need the following Python packages:
requests
jira
oauthlib
requests-oauthlib
requests-toolbelt
PyJWT
cryptography
atlassian-jwt
Once the addon is installed, follow these steps:
Job Queue
In odoo.conf, configure similarly:
[queue_job] channels = root:1,root.connector_jira.import:2
Backend
Open the menu Connectors > Jira > Backends
Create a new Jira Backend
Put the name you want
You can also select the company where records will be created and the default project template used when Odoo will create the projects in Jira
Save
Make note of the value of the App Descriptor URL (important: make sure that the system parameter web.base.url is set properly. For local development you will want to use ngrok to make your computer reachable over https from Jira Cloud).
Installing the backend as a Jira App
In case this gets outdated, refer to https://developer.atlassian.com/platform/marketplace/listing-connect-apps/#list-a-connect-app
Login on marketplace.atlassian.com (possibly create an account)
On the top right corner, the icon with your avatar leads to a menu -> select the Publish an App entry
On the Publish a new app screen:
select a Vendor (normally your company)
upload your app: select Provide a URL to your artifact
click on the Enter URL button
paste the App Descriptor URL in the pop-up and click on the Done button
the Name field should get populated from the name of your backend
Compatible application: select Jira
build number: can be kept as is
Click on the Save as private button (!) Important: do not click the “Next: Make public” button. That flow would allow anyone on Jira Cloud to install your backend.
On the next screen, you can go to the “Private Listings” page, and click on the “Create a token” button: this token can be used to install the app on your Jira instance.
Installing the Jira App on your Jira Cloud instance
Connect to your Jira instance with an account with Admin access
In the Apps menu, select Manage your apps
In the Apps screen, click on the Settings link which is under the User-installed apps list
In the settings screen, check the Enable private listings box, and click on Apply
Refresh the Apps page: you should see an Upload app link: click on it
On the Upload app dialog, paste the token URL you received in the previous procedure, and click on Upload
Configuration of the Backend
Going back to Odoo, the backend should now be in the Running state, with some information filled in, such as the Jira URI.
Configure the Epic Link
If you use Epics, you need to click on “Configure Epic Link”, Odoo will search the name of the custom field used for the Epic Link.
Congratulations, you’re done!
Usage
The tasks and worklogs are always imported from JIRA to Odoo, there is no synchronization in the other direction.
Initial synchronizations
You can already select the “Imports” tab in the Backend and click on “Link users” and “Import issue types”. The users will be matched either by login or by email.
Create and export a project
Projects can be created in Odoo and exported to Jira. You can then create a project, and use the action “Link with JIRA” and use the “Export to JIRA” action.
When you choose to export a project to JIRA, if you change the name or the key of the project, the new values will be pushed to JIRA.
Link a project with JIRA
If you already have a project on JIRA or prefer to create it first on JIRA, you can link an Odoo project. Use the “Link with JIRA” action on the project and select the “Link with JIRA” action.
This action establish the link, then changes of the name or the key on either side are not pushed.
Issue Types on Projects
When you link a project, you have to select which issue types are synchronized. Only tasks of the selected types will be created in Odoo.
If a JIRA worklog is added to a type of issue that is not synchronized, will attach to the closest task following these rules:
if a subtask, find the parent task
if no parent task, find the epic task (only if it is on the same project)
if no epic, attach to the project without being linked to a task
Change synchronization configuration on a project
If you want to change the configuration of a project, such as which issue types are synchronized, you can open the “Connector” tab in the project settings and edit the “binding” with the backend.
Synchronize tasks and worklogs
If the webhooks are active, as soon as they are created in Jira they should appear in Odoo. If they are not active, you can open the Jira Backend and run the synchronizations manually, or activate the Scheduled Actions to run the batch imports. It is important to select the issue types so don’t miss this step (need improvement).
Known issues / Roadmap
If an odoo user has no linked employee, worklogs will still be imported but with no employee.
Allowing several bindings per project
The design evolved to allow more than one Jira binding per project in Odoo. This conveniently allows to fetch tasks and worklogs for many projects in Jira, which will be tracked in only one project in Odoo.
In order to push data to Jira, we have to apply restrictions on these “multi-bindings” projects, as we cannot know to which binding data must be pushed:
Not more than one project (can be zero) can have a “Sync Action” set to “Export to JIRA”. As this configuration pushes the name and key of the project to Jira, we cannot push it to more than one project.
If we implement push of tasks to Jira, we’ll have to add a way to restrict or choose to which project we push the task, this is not supported yet (for instance, add a Boolean “export tasks” on the project binding, or explicitly select the target binding on the task)
Now that the webhooks are authenticated, use the values sent by the webhooks rather than querying them back
We now can have multiple backends, registering multiple webhooks. If we want to use this in practice, testing must be done and probably some things will need fixing.
Bug Tracker
Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us to smash it by providing a detailed and welcomed feedback.
Do not contact contributors directly about support or help with technical issues.
Credits
Contributors
-
Damien Crier
Thierry Ducrest
Tonow-c2c
Simone Orsi <simahawk@gmail.com>
Timon Tschanz <timon.tschanz@camptocamp.com>
jcoux <julien.coux@camptocamp.com>
Patrick Tombez <patrick.tombez@camptocamp.com>
Guewen Baconnier <guewen.baconnier@camptocamp.com>
Akim Juillerat <akim.juillerat@camptocamp.com>
Alexandre Fayolle <alexandre.fayolle@camptocamp.com>
-
Alexey Pelykh <alexey.pelykh@corphub.eu>
-
Son Ho <sonhd@trobz.com>
Maintainers
This module is maintained by the OCA.
OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.
This module is part of the OCA/connector-jira project on GitHub.
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file odoo_addon_connector_jira-17.0.1.0.0.6-py3-none-any.whl.
File metadata
- Download URL: odoo_addon_connector_jira-17.0.1.0.0.6-py3-none-any.whl
- Upload date:
- Size: 169.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
898c2ca5c356d955af476d43c57d66316fa559b7bb952911e80d5febb3369cff
|
|
| MD5 |
f4e64477f93e0ae6e02694310daaa061
|
|
| BLAKE2b-256 |
f0045a97a0f89375b9f95364f2f892196b3c02010309aa863b3736d162366cf4
|