Are custom fields stored in the jiradb database, even after deletion?

Hello!

We created a custom field that was used to determine whether or not the Fix Version/s field should be editable.  After running into some issues with it's functionality, we removed the field from JIRA, however we continued to see the same behavior that the existed when the custom field was in place.  Upon searching the System Info page, we continue to see the following:

 

com.onresolve.jira.groovy.groovyrunner:customfields{"14605":{"script":null,"template":null,"id":14105,"modelTemplate":null,"searcherName":"Free Text Searcher","name":"PETE","scriptFile":null,"customTemplate":null,"note":null,"viewTemplate":null,"fieldConfigSchemeName":"Default Configuration Scheme for PETE","searcherClass":"com.atlassian.jira.issue.customfields.searchers.TextSearcher","templateFriendlyName":null},"14604":{"script":"","template":null,"id":null,"modelTemplate":"textarea","searcherName":null,"name":null,"scriptFile":"/var/atlassian/application-data/jira/scripts/common/test.groovy","customTemplate":"","note":"","viewTemplate":"templates/plugins/fields/view/view-textarea.vm","fieldConfigSchemeName":null,"searcherClass":null,"templateFriendlyName":null}}

When removing a custom field from the system, does the script remain in the system?

Regards,

Scott Gilliland

1 answer

This widget could not be displayed.

I think you asked this very recently somewhere else?

Anyway, probably the behaviour you saw had nothing to do with the field. The script field config is stored in jira's property system implementation, which I guess is why it's showing it to you in System Info.

At least at the time of writing script fields, there was no way to get notified when a CF was deleted. So the config lives on for a while, I think it's removed when you add a new scripted field, or modify one. But it will definitely not be executing if you don't see it at Admin -> Script Fields.

You could add something to your test.groovy file like 

log.warn ("I'M EXECUTING...")

and verify you don't see that in the application log file.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Aug 22, 2018 in Marketplace Apps

How a Marketplace app tech team is achieving gender diversity

Hello! My name is Genevieve Blanch, and I'm the Marketing Manager at RefinedWiki, creators of apps to give teams the tools to customize Atlassian platforms. Currently, 44% of the tech team at Re...

509 views 3 18
Read article

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