Is project.id property unique and immutable across all jira cloud hosts?

Hi,

I’m writing Jira connect add-on and persisting some project data to the database.

I’m retrieving the relevant data based on projectId.

In order to run this add-on on multiple jira instances/hosts (e.g https://org1.atlassian.net, https://org2.atlassian.net) I need to ensure that projectId is unique across all jira cloud hosts.

Haven’t found any information on this in official docs.

Is it mentioned anywhere that projectId is unique? Is there a way I can ensure it is?

Hi, @glib.cornichon.

Project ids are unique only to a cloud instance. In your example, 2 different instances will have two projects with the same ID. If you need to have a unique ID, I would go the route of using the baseUrl/instanceUrl combined with projectId.

Hope this helps.
Ian

1 Like

Hi, @iragudo,

Thank you for very much your answer!

Regards,
Glib