Hi!
Could you help me?
I want to get report on Duration for specific user and I want to get duration amount in an hours (because it's saved in an hours), I use API call /V2.0/services/data/aggregateQuery with body:
{
"typeName": "Timesheet",
"aggregations": [
{
"function": "Sum",
"fieldName": "duration",
"alias": "duration"
}
],
"where": {
"and": [
{
"leftExpression": {"fieldName": "reportedDate"},
"operator": "GreaterThanOrEqual",
"rightExpression": {"value": "2018-12-01"}
},
{
"leftExpression": {"fieldName": "reportedDate"},
"operator": "LessThanOrEqual",
"rightExpression": {"value": "2018-12-31"}
},
{
"leftExpression": {"fieldName": "reportedby"},
"operator": "Equal",
"rightExpression": {"value": "/User/12fmbcm1kfbt45s25z7bxvego617"}
}
]
}
}
but in the response I get the sum in the days. For example, user tracked 40.5 h for month, in the response I get 5.0625. How can I get the sum in an hours using this api call?