Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

How to convert duration field to "hours"?

ivychan
Tera Contributor

I have a business rule which has criteria to check on the Project planned effort (which is a duration field) in terms of hours. Need advice on the business rule's syntax to convert a duration field to hours. Thanks!

3 REPLIES 3

Naveen4
Kilo Guru

If you give a glide_duration field a field attribute of "max_unit=hours", the days input will be removed from both form and list. You'll still see minutes/seconds inputs, however, so if that's a problem then Mark's suggestion is the way to go.

http://wiki.servicenow.com/index.php?title=Setting_the_Duration_Field_Value#Set_the_Maximum_Unit_of_Measurement

ivychan
Tera Contributor

Thank you Naveen. Your reference link helps! Appreciate your prompt response!