Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

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 file get ID automatically, like the hostname.

Hello, I would like to edit the file to the parameter get an ID automatically, for example the hostname.

It is possible? If so, how?

Thanks in advance!

3 answers



You mean, You did the same as Jira for Confluence ?  Could you please explain more about this ?


Thank you so much


In /opt/confluence/bin/ (your directory may differ) I have the following line:


When Confluence starts up this automatically sets the name of the node to the hostname.

On the Jira side, you can't have a variable in the file. The script from @Lessandro is a hack useful trick that modifies the file before Jira is run.


Do you have any idea for Confluence cluster? I'm facing the same issue for Confluence cluster



I got it.

Basically I created a bash script to add automatically the hostname in the file. Something like this:

sed -i "2s/.*/$JIRANODE/" /var/atlassian/application-data/jira/

This bash is executed in every reboot via cron.


In Confluence you can do the $HOSTNAME trick. Sad that you can't do something similar in Jira. Not the answer I was hoping for, but it is an answer.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Confluence Cloud

🎨 Add some visual life to your templates

Hi Atlassian Community, My name is Avni Barman, and I am a Product Manager on the Confluence Cloud team. Based on feedback from you, we are giving admins more power to create templates that a...

309 views 6 9
Read article

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