How to embed JIRA license key as part of JIRA config without entering it from the UI

Hello JIRA Users,

I am trying to apply the JIRA license contents in an automated way without manually inputting it from the First time JIRA setup within the UI once JIRA is started.

Is there a way to apply the license file in the JIRA home directory - which file name /location etc will this file be saved at. Where exactly is the license key stored within JIRA.


4 answers

To correct C. Faysal:

  1. Figure out what property ID represents the license key. For new versions of jira it will be:
    select id from propertyentry where property_key = 'License20';

  2. Now you can update the property, just replace the placeholders:

    update propertytext set propertyvalue = #{license_key} where id = #{jira_license_prop_id};

Thank you! This helped me so much when my JIRA didn't want to run after an upgrade to 6.2.1 :-)

1 vote

I've not seen Jira install the licence as a file. But you can poke it into the database.

(Sadly I can't remember where, it's been a while since I scripted it into a failover system - I'm pretty sure it's one of the propertyentry rows, but I'm not certain)

As nic said you can inject the license by sql statement. I need to be on a non-mobile device to view my backup script where i did exactly the same. I will post the cmd asap

here you go:

update propertytext set propertyvalue = '$jira_license' where ID = '10021'"

The only way I have been able to achieve this is by doing the entire install one time, say on a test box (including clicking around the wui) to obtain the fully formed response.varfile and to populate all of the needed XML files. Then I just wrote a bash script which performs the very same install using that "response.varfile" along with a copy the "dbconfig.xml" which was previously created.

Perform install w/response.varfile

Stop jira

Copy over dbconfig.xml to "jira data" directory

Verify permissions

Restart jira.


With that that formula I am able to kickstart a fully usable jira box without touching the keyboard. I will note that this method "may" cause issues with licensing down the road, but if you are in a heavy dev-env which may involve flipping these installs like hotcakes then this might work for you.

Still working on combing this w/ the ~/bin/ to setup https out the gate.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Nov 27, 2018 in Portfolio for Jira

Introducing a new planning experience in Portfolio for Jira (Server/DC)

In the past, Portfolio for Jira required a high degree of detail–foresight that was unrealistic for many businesses to   have–in   order to produce a reliable long-term roadmap. We're tur...

2,418 views 15 19
Read article

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you