Can someone help me to clear the field value (User Picker) in post functions.
I used the following script but it failed.
def developercf = ComponentAccessor.getCustomFieldManager().getCustomFieldObjectByName("Developer")
issue.setCustomFieldValue(developercf, null)
@kumar jira Is it required to clear field value using a groovy script? What add-ons do you have installed in your JIRA instance, that provide custom Validators, Conditions, and Post-functions?
I am asking because clearing a field value on a post-function can be a much easier task that can be done without custom script based Post-Functions, if you have some other relevant Add-ons available.
Am using Script runner (script post-function (inline script)) for this.
Am having a condition ( If case) on top, I would like to clear the value only if the condition satisfies.
Thank you.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@kumar jira See if this related Community post helps in resolving your issue: https://community.atlassian.com/t5/Marketplace-Apps-Integrations/How-to-Clear-a-User-Custom-Field-using-Groovy/qaq-p/144108
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@kumar jira Did your issue get resolved based on the suggestions in the Community post I shared before?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@kumar jira Did your issue get resolved based on the suggestions in the Community post I shared before?
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.