Dear all,
i am trying to add the post function set issue fields (JMWE app) to set the SLA Date (Date Time Custom Fields) with the created date +3 working days (Except Saturday and Sunday). Now im using the nunjuck expressions like this
{{ issue.fields.created | date("add",3,"days") | date }}
but it still count the non working days,
how to make it possible to only set the SLA date +3 working days from the created date?
Thankyou
Hi @Nicolas Andika,
Please note that you should use businessAdd for your requirement, which adds a specific number of days to a date, skipping non-business days (Saturday, Sunday). See the documentation of this here.
{{ issue.fields.created | date("businessAdd",3) | date }}
Give it a try, and let me know if you've any questions on this.
BTW, I'm from Appfire, the vendor of JMWE.
-Suprija
Lead Product Support Engineer - Appfire
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can look at this example from the JWME documentation.
Or you could look at achieving this with an Automation rule.
Smart values are available for plus business days.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thankyou for the refference, i will look into it
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.