Every time I start Jira, the Script Runner plugin adds another IssueFunction custom field to it. I’ve now got over a dozen identical IssueFunction fields.
What could be causing this?
This is with Script Runner 2.1.3 and Jira 5.1, if it matters.
Actually, it appears that it is one our one organization’s customizations to Jira that is messing things up. Script Runner’s problems were likely just a symptom of other problems. Sorry to have troubled everyone!
Fesifaz,
We see similar behavior. What customization did you have that caused this behavior?
Thanks,
Jeff.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
One the plugins we wrote tried, in its constructor, to access a custom field implemented by another plugin.
The code looked something like this:
public ProprietaryListenerClass(CustomFieldManager customFieldManager) { this.customFieldManager = customFieldManager; this.proprietaryCustomFieldObject = customFieldManager.getCustomFieldObject(33333L); }
This caused problems when Jira started up, because at the time the ProprietaryListenerClass in constructed, the plugin implementing the accessed custom field might not be loaded. In turn, this caused other problems, such as some of our custom fields not starting up properly. Script Runner must have gotten a failure trying to access the issueFunction custom field when it started up, which fooled it into thinking it didn’t exist, and so created another one. Then the Jira administrator would see these problems on startup and manually fix them (although not the underlying problem, buried in the code). When the dust settled, we had one more issueFunction field than we had before.
After I moved the call to getCustomFieldObject out of the constructor, everything works fine.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Weird... can you do
select * from customfield where cfname = 'issueFunction'
and check the customfieldtypekey - it should be 'com.onresolve.jira.groovy.groovyrunner:jqlFunctionsCustomFieldType'. Is it?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for trying to help, Jamie! The custom field type key is indeed 'com.onresolve.jira.groovy.groovyrunner:jqlFunctionsCustomFieldType'. But, as I say in my answer, it looks like your Script Runner plugin is blameless, and this is our organization’s doing. But thank you again for your efforts, and sorry for troubling you!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.