Resource Description for WorkitemAssignment

Properties for WorkitemAssignment

Property Name Type Required Is Collection?
Property Name Type Required Is Collection?
businessRole BusinessRole
endDateTime DateTime
linkedAssigneeObject mixed
startDatetime DateTime
user User
workitem Workitem

SDK Example for PHP

<?PHP

use Arbor\Api\Gateway\RestGateway;
use Arbor\Model\ModelBase;
use Arbor\Model\WorkitemAssignment;

ModelBase::setDefaultGateway(
    new RestGateway(
        "https://my-school.arbor.sc/rest-v2",
        "my.username@my-school.arbor.sc",
        "3bh54435v3gh45"
    )
);

$workitemAssignment = WorkitemAssignment::retrieve(5433);

$workitem = $workitemAssignment->getWorkitem();
$user = $workitemAssignment->getUser();
$businessRole = $workitemAssignment->getBusinessRole();
$linkedAssigneeObject = $workitemAssignment->getLinkedAssigneeObject();
$startDatetime = $workitemAssignment->getStartDatetime();
$endDateTime = $workitemAssignment->getEndDateTime();

 

Related Resources

See also: Workitem, User, BusinessRole