SOLVED: Get BaseURL Field?

Is is possible, through Groovy, to assign a new string variable to equal the "Base URL" field value from Admin ... Config within JIRA?

Example:

def helpme = baseurl;

where baseurl is some key word...

Thanks so much for your help.

1 answer

1 accepted

4 votes
Answer accepted

You can do like this:

def baseurl = ComponentAccessor.getApplicationProperties().getString("jira.baseurl")

Jobin --- Thank you so much for this!!!! It works great --- have a great day!

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted 17 hours ago in United States

Confluence Security Advisory

Good morning Members, Not sure if you are aware. Please read the following: https://www.icloud.com/keynote/0RyJ4VEdNUpjDpGfMhfZx9fEg#Confluence_Security_Advisor More details: https://co...

26 views 1 0
View post

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