I'm creating a new WorkItem and I need to change the responsible person (Field: Assigne To) by it. To create the WorkItem, do the following:
WorkItem workItem = new WorkItem(workItemType)
{
State = "A RESOLVER",
Title = "[TESTE INTEGRAÇÃO] " + solicitacao.numero + " - " + solicitacao.descricao,
AreaPath = ITERATION_PATH + "\" + solicitacao.tipo,
Description = GetDescriptionMessage(solicitacao),
IterationPath = GetCurrentIterationPath(ITERATION_PATH),
};
workItem.Save();
How do I get access to the AssignedTo field?