There is a condition that when a person is working at the multiple tasks of a project at the same date and time and when I am assigning the new task to the person at the same date and time it should pop up saying that the person is currently working for the other task for the same date and time and when i click okay and assigned the new task with the priority as High it should be given importance and the other task which is already created should be a normal task or second in line. How can this be achieved in the sharepoint 2013.

  • Are you open for server side coding or only client side coding ? Nov 15, 2016 at 7:05
  • @MonicaJagani I am using sharepoint designer I do know both server side coding and client side coding
    – Anish
    Nov 15, 2016 at 7:18
  • Also do you need to check just check Start date and time right ? What if the 2nd task start time is in middle for another task start - end time ? Nov 15, 2016 at 7:43
  • @MonicaJagani if Person A is assigned one task at 15-Nov-2016 10:00 AM Priority as High and again the Person A is assigned the other task at the same date 15-Nov-2016 10:00 AM with priority as High. It should pop up and say that the person A is busy with other task at the same date and time and it should ask us to shuffle the project according to the priority.
    – Anish
    Nov 15, 2016 at 9:09

1 Answer 1


I don't have the exact code but can provide some high level idea :

  1. REST API / CSOM - Once user enter information on NewForm.aspx, use PreSave function to check the similar task i.e. Assigned To User and Start Time value. If the returned XML have row count > 0 i.e. a task is assigned to user with same value. Get the item ID and update the priority to 'Normal'. Set the priority to current task as 'High'. Save the item.
  2. Add event receiver to the task list, which can check for similar available task for assigned user. If found, popup message to user as required. on click of yes/ no , continue to update the existing task for priority.

I would recommend to go for event receiver approach.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.