Hey All,
For some post scripts on Jira, I have a set of groovy scripts that I have deployed on the server where jira is located. These groovy scripts are run on the execution of certain transitions. Several locations and other values are hardcoded into the script, but realistically the values should be configuration values. Is there a way to create a configuration file that these groovy scripts will get their values from rather than having to hardcode these values into my scripts and change when I move from development to production?
For example, I have something along the lines of the following:
def url = new URL("http://some_dev_url:29000/")and in production I will need the following
def url = new URL("http://some_prod_url:19000/")but I would love to have something like this in both dev and productions
def url = new URL("http://" + config.url + ":" + config.port)Thanks for the help!