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}}
Changing this line {%set a = end | date("tz") | date("workingDiff", start | date("tz"), "days")%} for this {%set a = end | date("workingDiff", start , "days")%} has worked. Thank you for all
can you share the full configuration of your Scheduled Action?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I can see the result when I tested in the tester but I cant see the update in the issue.
Here is the scheduled action;
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Did you check for errors on the list of scheduled actions? Also, did you check that the jql expression returns issues?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
JQL gives the right result and in the logs of scheduled action there is no error or warning
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Mmm. It does look like a regression in the latest JMWE Cloud. Let's see what Appfire Support comes back with.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Aslıhan Paksoy ,
Good day, I am Reshma from the Appfire support team.
We have created a support request SUPPORT-99012 to better track your request and added you as a reporter. Please check if you are able to access the support request.
Please provide us with your instance URL and post function ID over the support request, so we can check our logs.
Looking forward to your response!
Thanks,
Reshma
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.