Clear value of date picker custom field

Ramya Yarru January 20, 2021

Hello,

I have a requirement to clear value of date picker custom field making it null using script runner post function. I have tried the below but doesn't seem to work for date picker CF.

// Getting custom field object
def cfoFuncDate = customFieldManager.getCustomFieldObjectByName("QA Deployment Date")

// Getting custom field value
def cfFuncDate = issue.getCustomFieldValue(cfoFuncDate

 

if (cfFuncDate) {
issue.setCustomFieldValue(cfoFuncDate, null)
}

 

Kindly help.

1 answer

0 votes
Martin Bayer _MoroSystems_ s_r_o__
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 20, 2021

Hi @Ramya Yarru can you post screenshot of postfunctions configuration? (I mean list of the postfunctions).

Suggest an answer

Log in or Sign up to answer