HowTo Correct Inconsistent Tasks Loading

Brad_McKennaBrad_McKenna Customer Advanced IT Monkey ✭✭✭
We have struggled for a bit with inconsistent loading of Tasks within tickets.
On the initial load there is often a limited subset of tasks:

If the user refreshes, F5, the Tasks list then populates as expected:

Any recommendations on how to resolve this inconsistency is greatly appreciated. 
When this occurs, no errors are dumped to the Dev Console.
Portal Version: 8.2.2.2012

My apologies if my search skills are weak and I missed a similar post.

Best Answer

Answers

  • Geoff_RossGeoff_Ross Cireson Consultant Super IT Monkey ✭✭✭✭✭
    Hi @Brad_McKenna

    I can't tell you exactly what is causing this but I can tell you that the difference between the two lists is that the first is just the Out of Box tasks and the second contains custom tasks. So the issue is something around how you custom code is getting loaded because it is failing to do so on initial load.

    Depending on how you are doing this there could be a number of reasons why.

    Does that help point you in the right direction at all?

    Geoff
  • Jonathan_BolesJonathan_Boles Customer Ninja IT Monkey ✭✭✭✭
    Our organization has struggled greatly with this as well. In our case we've been able to determine it's a timing and/or latency issue (analysts in Corporate office don't see the issue vs. analysts in the region experience the issue the majority of the time) but have made no progress on a resolution even after months of effort and trying different approaches. 
  • Roland_KindRoland_Kind Partner Advanced IT Monkey ✭✭✭

    Hi,

    several weeks ago I came across an alternate possibility to load the js files - I am not sure if this solves the problem - and maybe you have already tested this  ...

    var loadJS = function(url, implementationCode, location){    
        var scriptTag = document.createElement('script');
        scriptTag.src = url;
     if (implementationCode != null)
     {
      scriptTag.onload = implementationCode;
      scriptTag.onreadystatechange = implementationCode;
     }
        location.appendChild(scriptTag);
    };
     loadJS('/CustomSpace/RK_GLOB_Functions.js', function(){}, document.head);
     loadJS('/CustomSpace/RK_Activity Tools.js', function(){}, document.head);
     loadJS('/CustomSpace/RK_CREL_CR_2_SR.js', function(){}, document.head);
     loadJS('/CustomSpace/RK_CREL_SR_2_HW.js', function(){}, document.head);
  • Jeff_LandersJeff_Landers Customer IT Monkey ✭
    I am trying to implement script loader to run all of our customizations.  However, I don't see where to enter each path/url combination for each script.   Do I keeping adding var loadScript1, var loadscript2, var loadscript3,  and the for each loop takes care of it?
      Do you have an example of how to code it for multiple script calls?  
    Sorry, I am still learning.
    Jeff
Sign In or Register to comment.