The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

updating time log with smart values

Evan Giordanella
May 24, 2023

I have automation which adds time to tickets timelog. I want the the log to always reflect business days when possible. However, when the time diff is much smaller than a business day, it logs 0.

 

I have the following options as part of automation:

{
    "update": {
        "worklog" : [
            {
                 "add": {
                     "timeSpent" : "{{issue.In Progress Start Time.diff(now).businessDays}}d"
                  }
              }
           ]
      }
}

 

I've tried other options, like logging seconds, minutes, etc but then I lose the sense of business and the time logged is too large. 

Is there a way to have any sort of conditional logic that says if less than 1 business day, to log in seconds/minutes, else log with business days?

 

0 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events