Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Using smart values to automatically fill in parameters in Automation Log work causes errors

Simon Xiao
October 19, 2023

Hi

I plan to use the Log work module in Automation to automatically calculate the work time between when an issue is transitioned (Issue transitioned).

My Automation uses

[When:Issue transitioned]→[Log work]

In Logwork, I use smart values to fill in the Time Spent and Date Started parameters as follows:

Time Spent:{{now.diff(issue.changelog.status[“WIP”].lastUpdated, businessDays.hours)}}h
Date Started:{{issue.changelog.status[“WIP”].lastUpdated.format(“dd/MMM/yy h:mm a”)}}

The main purpose is to calculate the work time from the last update to WIP status to the trigger of Automation as Time Spent. And set the last update to WIP status as Date Started.

image.png

However, an error occurred during execution, as shown in the figure:

image.png

 

1 answer

0 votes
Azwandi [ServiceRocket]
Atlassian Partner
December 9, 2018

Hi Myra, if you are using ServiceRocket's connector for Salesforce & Jira, I would recommend contacting out support team at https://success.servicerocket.com/support.

Suggest an answer

Log in or Sign up to answer