Forums

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

TimeSpent as hours

Tim Foster
Contributor
April 21, 2022

Simple question, how do I get worklog.TimeSpent as a number?

My automation needs to know what the user has entered in hours. Some users will enter 4h some will enter 0.5d. I just need to get the numeric value in hours so 4h and 0.5d are both 4 hours. No matter what I try, worklog.TimeSpent returns a string and when I try to convert this to numeric I get an error

1 answer

0 votes
Lucas Modzelewski _Lumo_
Atlassian Partner
April 24, 2022

Check your time tracking settings, to get there add this to your Jira Cloud base URL: /secure/admin/TimeTrackingAdmin.jspa

Time tracking settings.png

Suggest an answer

Log in or Sign up to answer