Activity - Missing collapse/expand (all activities)

veronikak_
Giga Contributor

Hi all,

I am looking the functionality for collapse/expand for the activity as it was in fuji and another releasis before.

On all type of tasks (INC, REQ, PRB etc) activity section is by default expended which doesn't looks nice and where ever activity logs are many it takes ages to scroll to the end of the form.

Is collapse/expand simple missing or must be frist somehow activated?

, can we somehow have the button to expand and collapse it.

Do you have some experience with?

Thank you.


Veronika

1 ACCEPTED SOLUTION

My colleague opened an incident @ ServicenNow HI-Portal.



Answer from support:



----



I just found that this is a known issue, logged in PRB663462 - UI16: Collapse/Expand feature not available on Activity


I have related this problem ticket to this issue. The problem will be reviewed and most likely fixed in a future release or patch.


Since customers have access to problem records, please keep track of the progress on the problem ticket (PRB663462).


You can now view the current status of the Problems associated to your incidents by navigating to: Self Service --> Problems.


As workaround you could switch to UI15 since the Collapse/Expand feature is still available.


View solution in original post

21 REPLIES 21

ghsrikanth
Tera Guru

Hi Veronika,



Its great to hear, the issue was resolved. Please mark the answer correct, so it will help the community members in future.





Mark if it is helpful or correct


My colleague opened an incident @ ServicenNow HI-Portal.



Answer from support:



----



I just found that this is a known issue, logged in PRB663462 - UI16: Collapse/Expand feature not available on Activity


I have related this problem ticket to this issue. The problem will be reviewed and most likely fixed in a future release or patch.


Since customers have access to problem records, please keep track of the progress on the problem ticket (PRB663462).


You can now view the current status of the Problems associated to your incidents by navigating to: Self Service --> Problems.


As workaround you could switch to UI15 since the Collapse/Expand feature is still available.


I would like to track the progress of this issue but I can't find PRB663462 in the HI system.   Do you know if it's been resolved or deleted?


The problem was confirmend and the answer from HI is following:


---------------------------------------------------------------------------------------------------------------


Development has confirmed the issue but we dont have a timeline for the fix be delivered.


---------------------------------------------------------------------------------------------------------------


The Problem was opend from the Incident for a private company. Maybe that's the reason, why you are not able to search for it.


sharek-ullah
Tera Contributor

Here is a workaround for those who wishes to have the activity log toggle functionality in Geneva (UI16), while ServiceNow gets this fixed.



The following script adds a custom toggle icon/button next to the activity filter icon.



ss.PNG




Place the following code into a Global UI script to apply the custom toggle functionality to all the forms with the activity section or alternatively just define the "addActivityToggle()" function in the global UI script and then call it using either an onLoad client script or an ui macro via a ui formatter on the specific forms required..



try{


  $j(document).ready(function(){


            setTimeout(addActivityToggle, 3000);//set delay to allow the activity log section to be generated by AngularJS


  });


}


catch(e){


  alert('Error in processing addActivityToggle function due to: ' + e.message);


}



function addActivityToggle(){


  //Check to see if an element with the class name of '.activities .activities-form' exists


  if($j('.activities.activities-form').length){



        // Create the html for the toggle icon\button


        var toggButton = '<button id="activity_toggle_button" type="button" class="btn btn-default btn-ref icon-chevron-down sn-popover-basic"><span class="sr-only">Toggle Activity</span></button>';



        //Append the toggle button after the filter button


        $j('#activity_field_filter_popover').parent('.form-field-addons').append(toggButton);



        //Add the click function to hide\show the activity


        $j("#activity_toggle_button").click(function(){


              $j('.activities.activities-form').toggle(500,function(){


                    //Set the icon image to icon-chevron-left when the activity is hidden


                    if($j(this).css('display') == 'none'){


                          $j("#activity_toggle_button").removeClass('icon-chevron-down').addClass('icon-chevron-left').css('box-shadow' ,'inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px gold');


                    }


                    //Else set the icon image to icon-chevron-down


                    else{


                          $j("#activity_toggle_button").removeClass('icon-chevron-left').addClass('icon-chevron-down').css('box-shadow','none');


                    }


              });


      });


  }


}




Note: This code has only been tested in Geneva UI16, so may not work in later releases..



Hope it helps..