Migrating P2 plugin to cloud plugin (atlassian connect technology)

Hi all,

I have few questions concerning migration of p2 plugin (Jira server plugin) to atlassian connect.

  1. Is there a possibility to quickly migrate P2 plugin to atlassian connect?
  2. Can I install p2 plugin which is available on Marketplace on JIRA cloud?
1 Like

Short answer:

  1. no
  2. no

Long answer:

  1. depends on how complex your add-on is. If your add-on is heavily focused on client-side development and does not have many internal server product touchpoints, it should be relatively easy to migrate. However, Connect is definitely a different beast compared to P2. So try to consolidate as much code as possible, but be aware of the distinct differences between Cloud and Server.
  2. There is no long answer… it’s just not possible as this is not something Atlassian will support.

Remie’s answer is correct but it does not explain why we don’t support “just running P2 add-ons in Atlassian Cloud”. The simple answer is that P2 add-ons are too powerful for a Cloud environment. P2 add-ons can:

  • Use as much memory as they like.
  • Use as much CPU as they like.
  • Make database manipulations for JIRA / Confluence.
  • Put themselves anywhere in the Product UI that they like (or even just completely swap out the product UI for something totally different).
  • Put as much new Javascript into the main page as they like to manipulate anything that they like.

You can think of it this way: being able to install a P2 add-on on a Cloud instance gives you (an approximation of) root access for that tenant.

This is too much power in a Cloud environment; especially when you consider that, in a Cloud environment, you might be sharing some resources between multiple customers (like CPU and Memory for example). That would allow a misbehaving add-on for one customer to affect not only a single customers experience but multiple customers experience.

In short, Atlassian Connect is a much better sandboxed plugin system that defines much better API’s between the product and the add-on; allowing both to be much safer, more reliable and easier to develop. This comes at the expense of “power”; a Cloud add-on is more restricted, by design, and thus can’t do as much as a server add-on.

I hope that this gives you an understanding of why Atlassian Connect was built and how it continues to be designed. The idea is to give you as much power as possible without compromising on reliability or security for our shared customers.