Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Transitioning python code from Jira Server to Jira Cloud

Jordan Marcio July 24, 2023

Hello,

We are currently running some applications that interact with Jira Server API using Python. We use primarily webhooks from Jira and react to events using Python OoO with the Jira module.

We will be transitioning to Jira Cloud soon and want to know how much Python code if any has to be changed to make this compatible with Jira Cloud.

1 answer

1 vote
Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 24, 2023

Welcome to the Atlassian Community!

Where are you writing and running this code?  Your question is not explicit on this, but I think your answer is going to be "outside Jira, on another system, over the REST API".  But I don't want to waste your time with an answer for external system if you're actually doing stuff in Jira.

Server/DC and Cloud work very differently and it is very likely that your python won't work at all (complete redesign) if you are doing it inside Jira. 

If it is calling the REST API from the outside though, most of it is likely to be fine - Cloud has 3 versions of the external REST API, and ideally, you would update your code to use version 3 (don't use version 1, it's deprecated, going away, and some of the calls already don't work properly), but you should find that your code is mostly good for version 2 - it's very similar to the version 2 you've probably written for on Server/DC.  The functions are similar enough that you won't need to be changing what data you are sending, you won't need to rewrite much beyond the URLS your code hits.

Jordan Marcio July 24, 2023

Thank you for the reply. Yes, is calling the REST API from the outside, we mostly use jira webhooks and have external code functions listening for events from Jira and the function perform an action based on the event.

Jordan Marcio July 24, 2023

The same applies if I'm using the JIRA Library for Jira Python Integration? The same external python code I'm using can be used?

Suggest an answer

Log in or Sign up to answer