Forums

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

trigger time spent

Wael Hanfi October 8, 2021

Hi 

i added this script to update time spent on ticket automatically but without success 

i already use another rule to change the start date of ticket when it transited to in progress

and i want to calculate the difference between the start date and {{now }} but i didn't find the correct smart value of startDate of ticket 

 

Screenshot.png 

{
"update": {
"worklog" : [
{
"add": {
"timeSpent" : "{{now.diff( ticket.startDate).minutes}}m"
}
}
]
}
}

 

i need some help please 

thanks

1 answer

0 votes
Bill Sheboy
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.
October 8, 2021

Hi @Wael Hanfi -- Welcome to the Atlassian Community!

I do not believe the names of the smart values change with language settings/issue types, so perhaps instead try:

{{now.diff(issue.startDate).minutes}}

Kind regards,
Bill

Suggest an answer

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

Atlassian Community Events