Assign

Field guide

The following fields are available in an assign object

NameTypeExampleNotes
idint3Assign id
typeint1See Assign Types
type_idint1895Id of assigned type
namestringProject xyzName of assignment
employeestringDavid PetersonEmployee name who was working on this assignment
hoursfloat8.4Assigned hours
yearint2013Year of assignment
monthint5Month of assignment
dayint3Day of assignment
datedate2012-05-04Day of setting the assignment
activitystringProject managementActivity name
commentstringmy comment to this work i didComment to assignment
billedint1If this assignment was billed or not

Example content of data variable:

    {
        "error":false,
        "item":{
            "id":3,
            "type":4,
            "type_id":16,
            "name":"Working for Project X",
            "employee":"John Doe",
            "hours":3,
            "year":2013,
            "month":2,
            "day":27,
            "date":"2013-02-27",
            "activity":"",
            "comment":"Repairing car",
            "billed":0
        }
    }
    

Type

TypeMeaning of type
1Projects
2Costunits
4Clients