Costs

Sample get_costs request

?action=get_costs

Returns individual costs added for selected or all tasks

Optional parameters:

  • id_project — project ID (costs of all tasks of a particular project)

  • id_task — task ID (costs of a particular task)

  • datestart and dateend — searching data range in DD.MM.YYYY format (inclusive)

  • is_timer — time costs type, possible values:

  • 1 — received from the timer

  • 0 — entered manually

  • filter — additional searching parameter (see search_tasks for a list of operators to work with data used in filter)

Possible data for use in filter (for the get_costs method):

  • id=TASK_ID — costs of a particular task (Integer field)

  • project=PROJECT_ID — costs on tasks of a particular project (Integer field)

  • comment — user comment to a separate cost line (String field)

  • dateadd — date, when the costs were added in the 'DD.MM. YYYY' format (String field)

Returned data:

  • id — cost line ID

  • comment — user comment to a separate cost line

  • time — time cost value

  • money — financial cost value

  • date — date, when the costs were added

  • is_timer — time costs type

  • true — received from the timer

  • false — entered manually

  • user_from — user, who added an individual cost line

  • task — task, where costs are added (see get_task method for details on returned parameters meaning)

  • total — total time and financial costs of all cost lines

Sample JSON response

If the request succeeds, the response will contain ok status and the following data:

Was this helpful?