There are two custom fields in the project. One is a check list field named "Need Notification" which has 2 values "Yes" and "No". The other is a datatime picker field name "Set notification time".
What we need is, when a user select "Need Notification" as "Yes", and he then set a datatime in field "Set notification time", for example on 2019/8/10 10:00 AM. When it comes to 2019/8/10 10:00 AM, jira will send a mail to the person.
I plan to use script runner to do this. In Script Listeners --> Send a custom mail, I set "Condition and Configuration" as below:
cfValues['Need Notification'] == 'Yes' && cfValues['Set notification time'] == now()
But seems it doesn't work. Would you please tell me how to write the condition script?
Thank you very much!