Hi everybody,
I would like to delete a customfield of my issue with a groovy script only on a particular case (if my employee is in the category "permanent employee", i wish delete the customfield "contract end date" of my issue). Is it something possible ?
Otherwise I should clear my field.
Hi,
you can do
yourCustomField.setHidden(true)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I assume you don't really mean "delete", but just "blank out or empty the date of a field"?
A scripted listener is the best way to do that, it can listen for issue changes, check if your employee field has changed, check the new employee's category and set the customfield value to "null" if appropriate.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Fields are either displayed or not displayed based on issue type or project. You can't delete it on a case by case basis.
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.