Hi,
I have created a scheduled action to update durations of the tasks based on start date & end date. The action is runned with no error and warning but there are no updates in the tasks. I cant find the reason, can you help?
this is the action
{%set workingTime = {
monday:['07:30:00', '12:00:00','13:00:00','16:30:00'],
tuesday:['07:30:00', '12:00:00','13:00:00','16:30:00'],
wednesday:['07:30:00', '12:00:00','13:00:00','16:30:00'],
thursday:['07:30:00', '12:00:00','13:00:00','16:30:00'],
friday:['07:30:00', '12:00:00','13:00:00','16:30:00']
} %}
{%set holidays = ["*-04-20","*-04-21","*-05-01","*-05-19","*-06-26","*-06-27","*-06-28","*-06-29","*-06-30","*-08-30","*-10-29"]%}
{% set end =issue.fields["End date"] %}
{% set start = issue.fields["Start date"] %}
{%set a = end | date("tz") | date("workingDiff", start | date("tz"), "days")%}
{%set b = a +1 %}
{{b | int}}