I currently have a large project list that has numerous sub-tasks assigned to each main section. I'm looking to create a view that only displays the top level tasks.
I've looked at a previous question that was asked, providing the following solution:
jQuery('div[class="ms-vb itx"]').find('span[style]').each(function(){
if(jQuery(this).css('margin-left')!="0px"){
jQuery(this).parent().parent().parent().hide();
}
});
However it doesn't hide the sub-tasks for me. I'm currently testing said code in a script editor web-part and make a call to the Jquery library externally just before the script. Using:
Also tried various settings in the view itself, such as changing the folder settings but nothing allows you to hide sub-tasks out of the box.
Any help is greatly appreciated.