It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Is it possible to tell if I am connected to an on-demand instance or a server instance using the JIRA API?

Guy Matz Mar 31, 2016

Hi!  Using the REST API - or some other mechanism - Is it possible to tell if I am connected to a server instance or an on-demand instance?

4 answers

0 votes
Andrew Frayling Mar 31, 2016

You could call /rest/api/2/serverInfo and look at the version element. For on-demand the version is something like:


i.e. it has OD in it.

and for server it's just:

"version": "6.2.5"

Not sure if that's good enough? 

Mark Lassau Mar 31, 2016

If you see "-OD-" in the version then it is definitely Cloud.
Unfortunately the reverse is not true.

Sometimes cloud will have (eg) version "7.2.0" (then two weeks later it will move to "7.3.0-OD-01-xxx")

Another heuristic is the domain name ... eg if it is on "*" (or one of a few others) then it is Cloud.
But this too is unreliable because that list could expand or change in the long term.

0 votes
Robert Massaioli Atlassian Team Mar 31, 2016

Why do you need to know the difference?

0 votes
Guy Matz Mar 31, 2016

Backups and re-indexing - possibly others? -  work/behave differently between the two versions . . .  I would like to add some code to the jira python client to behave appropriately depending on the context.



0 votes
Mark Lassau Mar 31, 2016

AFAIK there is no reliable way to do this in REST.

Sounds like a good feature request smile

The way I usually tell in the UI is by looking at the footer.
Server will have "Atlassian JIRA Project Management Software".
Cloud will have "Powered by Atlassian

Guy Matz Apr 01, 2016

I did it!!

I found it very awkward to word that request . . .  are the two types of servers "onDemand" and "Server"?  "Server" is not very descriptive . . .  and now that I think of it, "onDemand" is now cloud.


Please feel free to update the ticket if you have any thoughts, or send them to me and I will update if you are not able to!  Thanks!!!

Mark Lassau Apr 03, 2016

Thanks for raising that.

Yep - "Server" can be ambiguous, but Marketing obviously think it's a good name, so who am I to argue cheeky

(Internally we often say "BTF" - Behind The Firewall - for On Premises installs but that's misleading too because our Cloud instances are all behind a firewall too)

I might change "Server type" to "Deployment type" in the issue.

Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Posted in Jira Core

How to manage many similar workflows?

I have multiple projects that use variations of the same base workflow. The variations depend on the requirements of the project or issue type. The variations mostly come in the form of new statuses ...

747 views 7 0
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you