Hi,
I'd like to set the due date to be the minimum between {{now.plusBusinessDays(1)}} and a custom date field.
My synthax seems to be wrong :
min({{now.plusBusinessDays(1)}},{{"Customfield[Date]"}} <= endOfDay("+15d"))
Thanks !
Laetitia
Hey @Laetitia Gascon
So you want to set Due Date to be be set on the closest possible date between tomorrow and the custom date field?
That would mean you can just set it to the custom date?
Please elaborate cause I think I am missing something here :)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Are you doing this with automation or with ScriptRunner?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Okay so we want JIRA to choose between CustomFieldDate and {{now.plusBusinessDays(10)} - whichever will come first?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Okay, so what I came up with is below.
It works for me.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.