Discovered error with a custom scripted field, most likely after having upgraded to JIRA 7.8.0. It looks like ComponentManager has been replaced with ComponentAccessor.
This was my script:
import com.atlassian.jira.ComponentManager;
def burl = ComponentManager.getInstance().getApplicationProperties().getString("jira.baseurl")
return (issue.parent != null) ? "<a href=\""+ burl + "/browse/"+ issue.parentObject.key + "\">"+ issue.parentObject.key + "</a>" : "";
I changed it to:
import com.atlassian.jira.component.ComponentAccessor;
def burl = ComponentAccessor.getInstance().getApplicationProperties().getString("jira.baseurl")
return (issue.parent != null) ? "<a href=\""+ burl + "/browse/"+ issue.parentObject.key + "\">"+ issue.parentObject.key + "</a>" : "";
But getting "cannot find matching method" error.
What am I doing wrong? Thanks!
getInstance() is not needed. Try this:
ComponentAccessor.getApplicationProperties().getString(
"jira.baseurl"
)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.