Ability to see Active and Inactive Incidents within the last 90 days

jbark17
Tera Contributor

Hey all, I have a business requirement for Inactive and Active incidents within the last 90 days to be shown in a related links tab at the bottom on an incident. I wanted to know where to start and what is the best way to achieve this. Thanks!

4 REPLIES 4

SHARANsnow7
Tera Guru

Hello @jbark17 i have worked on your Requirement using UI ACTIONS and i have attached the screenshots and code

Code:

function onClick() {

    var query = 'sys_updated_on>javascript:gs.beginningOfLast3Months()';
    var url = '/incident_list.do?sysparm_query=' + query;
    g_navigation.openPopup(url);

}
ScreenShots:

SHARANsnow7_0-1696846809533.png

SHARANsnow7_2-1696846908028.pngSHARANsnow7_3-1696846940100.pngSHARANsnow7_4-1696847003950.png


Help others to find a correct solution by marking the appropriate response as correct answer and helpful.

 

Hi Sharan, thanks for the reply. Which release is this on? Tokyo or later?

Hii @jbark17  I have tried this out on Vancouver release,which is the latest one.

Mark my answer helpful & accepted if it helps you resolve your query.

Regards
Sharan

jbark17
Tera Contributor

Thanks Sharan. Also, were you able to get this to populate at the bottom of the Incident form in one of the tabs? That is part of the requirement for this project. They want to see this information populate in a tab in the Related List section.