Related to task table

Anish9515
Tera Contributor

Hi All,

In the task table , records with the task type "pm_project_task" (project task)should have a state of "In progress", while records with other task types can be in any state.

Can you help me how write query

 

var otherTaskIds = []; //Get Hard Allocated Tasks

function getHardAllocatedTasks() {

var tasks = new GlideRecordSecure('task');

tasks.addQuery('sys_id', 'IN', otherTaskIds.join(','));

tasks.query();

_addRecordsToList(tasks, false);

}

I want to modify  above scenario in code

Regards,

Anish

2 REPLIES 2

Uncle Rob
Kilo Patron

Why are you running a script against TASK directly?
That sounds super dangerous.

In time sheet portal , Task tab needs to data populate on above scenario's