Mattersphere Developers Forum
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Go down
avatar
Admin
Admin
Posts : 122
Join date : 2018-12-17
https://mattersphere-devs.forumotion.com

Find Milestone Task Using Task Filter Empty Find Milestone Task Using Task Filter

Thu 23 Jan 2020 - 16:27
Hi,
What is the best way to find a task on a matter by task filter? At the moment we are using:
Code:

foreach (FWBS.OMS.FileManagement.Milestones.Task task in CurrentPlan.Tasks)
{
    string tskFilter = Convert.ToString(task.FilterId);
    if (tskFilter == "tskFilterWeAreLookingFor")
    {
        //Do something with task
    }
}
Is there a way to do this without looking though each task?
Thanks
,Romie
_________________________________________________________________________________________________________________________________
This is now much simpler:
Code:

FWBS.OMS.FileManagement.Milestones.Task _task = CurrentPlan.Tasks["tsk_01_010_MyTask"];
Back to top
Permissions in this forum:
You cannot reply to topics in this forum