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

Scriptrunner Script field error

Tony Mohr October 8, 2018

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!


1 answer

1 accepted

Suggest an answer

Log in or Sign up to answer
0 votes
Answer accepted
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 8, 2018

getInstance() is not needed. Try this:


Tony Mohr October 9, 2018


AUG Leaders

Atlassian Community Events