I am working on automatically configuring Support Request types of Issues to be automatically assigned to a user depending on the day of the week.
I found a script for a scripted field value to convert the date into the day of the week. It is all very accurate, but. When I create the post functions on the workflow they dont seem to be working.
I also tried testing my condition via Script Runner so that it sends mail, and when I preview the condition is correct. And returns true / false perfectly. But when I create a support ticket in that task, no email is made. I aslo tried it with setting the Watcher. No luck as well.
What could be the problem?
These are the conditions I have tried:
- cfValues['weekdayName'] == 'Thursday' (worked)
- cfValues['weekdayName']*.value.contains('Thursday') (didnt work, returned false even though true)
Are the conditions different for scripted field values? What could I be missing?
Thank you in advance!