Forum Discussion

Derek Crawford's avatar
Derek Crawford
Copper Contributor
Aug 04, 2017

SPO Task list: Cannot add task to timeline w/o Default list style

One of our users customized the view of their SPO Task list, and changed the Style from Default to Shaded.  After doing so they lost the elipse button to add the task to a timeline from the list, and the Ribbon option was not available either.  I tried all the other styles and got the same result.  I am curious if it is intended (expected functionality) that adding tasks to timelines can only be done with the list using the default style.  Has anyone else experienced this?  

3 Replies

  • Vipin Tyagi's avatar
    Vipin Tyagi
    Brass Contributor

    Hi Derek Crawford Sir,

    As of a developer perspective the control that is used to add task to Timeline is not available in that context in which you're changing the style of your Task List.

    As the below image illustrate :Microsoft uses a huge amount of javascript.So,It may be the reason that they don't provide such functionality everywhere.You can test the list objects at that page by running Object.keys(ctx) in browser console in both situation (Default/Shaded).

    Hope this help you in any manner.

     

    Thanks!

     

     

  • Changing the style from Default to Shaded did nothing to my task list in SPO.

     

    We did though have a JSlink for modifying the presentation of a column and we found that we lost the option to Add to/Remove from the timeline. Searching on the internet we discovered that by also adding this "~sitecollection/_layouts/15/hierarchytaskslist.js" to the JSlink restored the options.

     

    Are your user using JSlink?

    Kind regards, John

    • Derek Crawford's avatar
      Derek Crawford
      Copper Contributor

      John, thanks for your reply.

       

      No, unfortunately we are not using any JSlink as far as I can tell.  As a test, I just created a new Project subsite, changed the default view of the Task list (looks like it doesn't matter what Style you set it to, other than Default) and lost the ability to Add task to timeline.

       

      Would the JSlink be an attribute found when using Publishing pages vs. traditional templates?

       

Resources