Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

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 Champion
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