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

Thank you very much, sebastiaandevlaam One additional question: Is it possible to use this script as well to show/hide a section? We would like to collapse some information in an incident (mainly the incident header information like Incident-ID, Assignment group, State, etc.) because this information is usually only helpful when someone starts working on or forwards the incident. I already tried to adapt the script, but without any success, because the first section in a form has no name as far as I know.


Found a way to toggle the incident header details and as well to place the button on the top-bar. Therefore I adapted the script a little bit. It works for Helsinki and Kingston.



function onLoad() {  


  try{  


            /* set delay to allow the activity log section to be generated by AngularJS.


            Without delay, you get an arrow popup when button is pushed. */  


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


                      addHeaderToggle();  


            });  


  }  


  catch(e){  


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


  }  


}  


 


 


function addHeaderToggle(){  


  //Check to see if an element with the class name of 'h-card-wrapper.incident-form' exists  


  if($j('#bf1d96e3c0a801640190725e63f8ac80.section-content').length){  


  var user_collapsed = getPreference('user.incident_header.collapsed');  


  if (!user_collapsed) {  


                      user_collapsed = false;  


  setPreference('user.incident_header.collapsed', false);  


  }  


  var user_toggle = getPreference('user.incident_header.toggle');  


  if (!user_toggle) {  


  user_toggle = false;  


  setPreference('user.incident_header.toggle', false);  


  }  


 


  // Create the html for the toggle icon/button    


  var toggButton = '<button id="incident_header_toggle_button" type="button" class="btn btn-default btn-ref icon-maximize sn-popover-basic" title="Toggle Incident Header"><span class="sr-only">Toggle Incident Header</span></button>';  


 


  //Append the toggle button after the filter button  


$j('#moreOptionsContainer').closest('.navbar-right').append(toggButton);


 


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


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


  $j('#bf1d96e3c0a801640190725e63f8ac80.section-content').toggle(250, function(){  


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


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


  $j("#incident_header_toggle_button").removeClass('icon-maximize').addClass('icon-minimize');  


  setPreference('user.incident_header.toggle', true);  


 


  }  


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


  $j("#incident_header_toggle_button").removeClass('icon-minimize').addClass('icon-maximize');  


  setPreference('user.incident_header.toggle', false);  


  }  


  });  


  });  


 


  if (user_toggle) $j("#incident_header_toggle_button").trigger('click');  


 


  }  


}


This is an all or none scenario right?  This doesn't provide the ability to toggle individual activities does it?

jquinonez
Tera Contributor

I recently submitted issue and they provided an update for implementation:


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


This was a design change on the new UI made by our development team for UI16. As demand increased to return this feature on UI16, they decided to proceed with implementing the feature on the new UI as well. This is considered an enhancement request and it is pending implementation on our Jakarta platform version.


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



Hope this helps.



--Johnny Quinonez


rlehmann
Kilo Sage

Many thanks to all for their efforts on restoring this valuable feature.
Had the UI Script solution working well, up until we upgraded to Madrid Patch 2.
We do have a number of ITIL users who print the odd ticket and now when they select the Printer Friendly Version icon, which launches the new window, it generates the error message from the try/catch. Clicking OK on the error message still allows the user to proceed to the print friendly window and print the ticket, but is annoying.

find_real_file.png

I also tried using the Client Script version of this script, which then generates this message each time a task based ticket is loaded.

According to the comments, my understanding is that this was addressed via the Jakarta release, but when I disable my UI Script/Client Script, the icon to toggle the activity formatter is no longer visible.
Tried setting the system property "glide.ui.show_live_feed_activity" to true, but this did not have an impact.
We are not currently using Live Feed, so I'm not sure if that is why.

Has anyone else experienced this issue or knows how to enable the fixed version of the toggle activity formatter functionality released in Jakarta? I've searched thru the Docs site, but haven't been able to locate a reference for the toggle feature.

Thanks for any and all assistance.

Cheers,
Ron