Given a DateTime variable, how to find next Monday in customScript actions?
Say that this script is only to run on Fridays, and I want the next Monday. I’ve tried the following:
@CustomScriptAction(
output = 'monday'
)
def customScript(){
RDateTime.now().plus(java.Duration.ofDays(3))
}
and
def customScript(){
RDateTime.now().plusDays(3)
}
Which should be valid expressions.