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

0 vote

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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Jul 10, 2018 in Marketplace Apps

If you’re an Atlassian app developer, you’ll want to know about Atlas Camp!

This September 6-7, hundreds of Atlassian App developers will flock to Barcelona Spain to build skills, discover product roadmaps, meet face-to-face with the Atlassian team, and learn how to extend t...

178 views 0 4
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