JMWE - Scheduled action does not update field value with no error & warning

Aslıhan Paksoy August 11, 2023

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}}

3 answers

1 accepted

0 votes
Answer accepted
Aslıhan Paksoy August 16, 2023

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

0 votes
David Fischer
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
August 11, 2023

Hi @Aslıhan Paksoy 

can you share the full configuration of your Scheduled Action?

Aslıhan Paksoy August 13, 2023

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;JMWError.jpg

David Fischer
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
August 14, 2023

Hi @Aslıhan Paksoy 

Did you check for errors on the list of scheduled actions? Also, did you check that the jql expression returns issues?

Aslıhan Paksoy August 15, 2023

Hello,

JQL gives the right result and in the logs of scheduled action there is no error or warning

David Fischer
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
August 15, 2023

Mmm. It does look like a regression in the latest JMWE Cloud. Let's see what Appfire Support comes back with.

0 votes
Reshma Begum {Appfire}
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 11, 2023

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

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events