<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: I am trying to remove &amp;quot;priority&amp;quot; from the &amp;quot;ticket&amp;quot; page.  I only see  &amp;quot;Session&amp;quot; and &amp;quot;Attachments&amp;quot; (I already removed &amp;quot;location&amp;quot;) in ITSM forum</title>
    <link>https://www.servicenow.com/community/itsm-forum/i-am-trying-to-remove-quot-priority-quot-from-the-quot-ticket/m-p/796087#M367866</link>
    <description>&lt;P&gt;Hi!&lt;/P&gt;
&lt;P&gt;We were talking about another widget. I see you're looking at the HR feature of ServiceNow. Unfortunately, I don't have that active (I'll look and see if I can get this active on my personal developer instance), but if you can, please press: ctrl+right-click on that widget that you're talking about, then go to widget in editor and then paste the HTML, Client Script, and Server Script here in a post for us to look at.&lt;/P&gt;
&lt;P&gt;Please ensure you post the code here using the "Insert/Edit code sample" button locating near where you can bold or change font, etc. when posting. This helps keeps things organized.&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;</description>
    <pubDate>Thu, 16 Jan 2020 19:20:39 GMT</pubDate>
    <dc:creator>Allen Andreas</dc:creator>
    <dc:date>2020-01-16T19:20:39Z</dc:date>
    <item>
      <title>I am trying to remove "priority" from the "ticket" page.  I only see  "Session" and "Attachments" (I already removed "location")</title>
      <link>https://www.servicenow.com/community/itsm-forum/i-am-trying-to-remove-quot-priority-quot-from-the-quot-ticket/m-p/796083#M367862</link>
      <description>&lt;P&gt;I am trying to remove "priority" from the "ticket" page.&amp;nbsp; I only see&amp;nbsp; "Session" and "Attachments" (I already removed "location")&lt;/P&gt;
&lt;P&gt;I found another article about changing "field request" and removing priority from there, but that seems to cause errors.&lt;/P&gt;
&lt;P&gt;Any help would be appreciated.&lt;/P&gt;
&lt;P&gt;Thanks,&lt;BR /&gt;Andrew&lt;/P&gt;</description>
      <pubDate>Thu, 30 Aug 2018 08:30:31 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/i-am-trying-to-remove-quot-priority-quot-from-the-quot-ticket/m-p/796083#M367862</guid>
      <dc:creator>Andrew112</dc:creator>
      <dc:date>2018-08-30T08:30:31Z</dc:date>
    </item>
    <item>
      <title>Re: I am trying to remove "priority" from the "ticket" page.  I only see  "Session" and "Attachments" (I already removed "location")</title>
      <link>https://www.servicenow.com/community/itsm-forum/i-am-trying-to-remove-quot-priority-quot-from-the-quot-ticket/m-p/796084#M367863</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;So you'll actually want to clone the ticket fields widget, then remove priority from this line within the server script:&lt;/P&gt;
&lt;PRE class="language-javascript"&gt;&lt;CODE&gt;	var fields = $sp.getFields(gr, 'number,state,priority,sys_created_on');&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P style="top: 59px;"&gt;The best way to start with all this is to go to an incident you have open on the portal, ctrl+right-click on the ticket fields on the right-hand side, click widget in editor:&lt;/P&gt;
&lt;P style="top: 59px;"&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/44314i17FC890FC4CB8E47/image-size/large?v=v2&amp;amp;px=999" title="find_real_file.png" alt="find_real_file.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P style="top: 59px;"&gt;Clone:&lt;/P&gt;
&lt;P style="top: 59px;"&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/44316i60D818DD01E6C461/image-size/large?v=v2&amp;amp;px=999" title="find_real_file.png" alt="find_real_file.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P style="top: 59px;"&gt;Do your edit....&lt;/P&gt;
&lt;P style="top: 59px;"&gt;Then go back to the original portal page, ctrl+right-click again, choose instance options, then open in platform:&lt;/P&gt;
&lt;P style="top: 59px;"&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/44319i5D26A39AEE3EC751/image-size/large?v=v2&amp;amp;px=999" title="find_real_file.png" alt="find_real_file.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P style="top: 59px;"&gt;Then finally...associate the new widget you made with that instance:&lt;/P&gt;
&lt;P style="top: 59px;"&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/44315i7ECCD948551EB5D8/image-size/large?v=v2&amp;amp;px=999" title="find_real_file.png" alt="find_real_file.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P style="top: 59px;"&gt;Change it to whatever you named your new ticket fields widget.&lt;/P&gt;
&lt;P style="top: 59px;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="top: 59px;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="top: 59px;"&gt;&lt;EM&gt;&lt;STRONG&gt;Please mark reply as Helpful and Correct, if applicable. Thanks!&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Aug 2018 12:52:16 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/i-am-trying-to-remove-quot-priority-quot-from-the-quot-ticket/m-p/796084#M367863</guid>
      <dc:creator>Allen Andreas</dc:creator>
      <dc:date>2018-08-30T12:52:16Z</dc:date>
    </item>
    <item>
      <title>Re: I am trying to remove "priority" from the "ticket" page.  I only see  "Session" and "Attachments" (I already removed "location")</title>
      <link>https://www.servicenow.com/community/itsm-forum/i-am-trying-to-remove-quot-priority-quot-from-the-quot-ticket/m-p/796085#M367864</link>
      <description>&lt;P&gt;Thanks a lot!&lt;/P&gt;</description>
      <pubDate>Tue, 04 Sep 2018 05:42:43 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/i-am-trying-to-remove-quot-priority-quot-from-the-quot-ticket/m-p/796085#M367864</guid>
      <dc:creator>Andrew112</dc:creator>
      <dc:date>2018-09-04T05:42:43Z</dc:date>
    </item>
    <item>
      <title>Re: I am trying to remove "priority" from the "ticket" page.  I only see  "Session" and "Attachments" (I already removed "location")</title>
      <link>https://www.servicenow.com/community/itsm-forum/i-am-trying-to-remove-quot-priority-quot-from-the-quot-ticket/m-p/796086#M367865</link>
      <description>&lt;P&gt;Hi &lt;SN-MENTION class="sn-mention" table="live_profile" sysid="169ecae9dbd41fc09c9ffb651f961975"&gt;@Allen A&lt;/SN-MENTION&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;I am trying to do a similar thing to remove the Watch list field from the Widget .&lt;/P&gt;
&lt;P&gt;However I am not find this in Server Script .&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/44317i3A0DB6AA1176E5EE/image-size/large?v=v2&amp;amp;px=999" title="find_real_file.png" alt="find_real_file.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am only this in Server script .&lt;/P&gt;
&lt;P&gt;if (data.openForView || data.isApprovalRequired) {&lt;BR /&gt; &lt;BR /&gt; //Setting up case info - For OpenedFor Users View&lt;BR /&gt; data.shortDescription = grCase.getDisplayValue('short_description');&lt;BR /&gt; data.subjectPerson = grCase.getDisplayValue('subject_person');&lt;BR /&gt; data.openedForPerson = grCase.getDisplayValue('opened_for');&lt;BR /&gt; data.assignedTo = grCase.getDisplayValue('assigned_to');&lt;BR /&gt; data.subjectPersonId = getProfileLink(String(grCase.subject_person));&lt;BR /&gt; data.assignedToId = getProfileLink(String(grCase.assigned_to));&lt;BR /&gt; data.openedForId = getProfileLink(String(grCase.opened_for));&lt;BR /&gt; data.due = getDateLabel(grCase.getDisplayValue('due_date'));&lt;BR /&gt; data.isCaseCancellable = checkCaseCancellable(grCase);&lt;/P&gt;
&lt;P&gt;data.infoTabs = $sp.getWidget('hrm-info-tabs', {&lt;BR /&gt; sys_id : grCase.getUniqueValue(),&lt;BR /&gt; isParentCase: true,&lt;BR /&gt; isSummary: data.isSummary&lt;BR /&gt; });&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jan 2020 18:04:06 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/i-am-trying-to-remove-quot-priority-quot-from-the-quot-ticket/m-p/796086#M367865</guid>
      <dc:creator>Mrman</dc:creator>
      <dc:date>2020-01-16T18:04:06Z</dc:date>
    </item>
    <item>
      <title>Re: I am trying to remove "priority" from the "ticket" page.  I only see  "Session" and "Attachments" (I already removed "location")</title>
      <link>https://www.servicenow.com/community/itsm-forum/i-am-trying-to-remove-quot-priority-quot-from-the-quot-ticket/m-p/796087#M367866</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;
&lt;P&gt;We were talking about another widget. I see you're looking at the HR feature of ServiceNow. Unfortunately, I don't have that active (I'll look and see if I can get this active on my personal developer instance), but if you can, please press: ctrl+right-click on that widget that you're talking about, then go to widget in editor and then paste the HTML, Client Script, and Server Script here in a post for us to look at.&lt;/P&gt;
&lt;P&gt;Please ensure you post the code here using the "Insert/Edit code sample" button locating near where you can bold or change font, etc. when posting. This helps keeps things organized.&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jan 2020 19:20:39 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/i-am-trying-to-remove-quot-priority-quot-from-the-quot-ticket/m-p/796087#M367866</guid>
      <dc:creator>Allen Andreas</dc:creator>
      <dc:date>2020-01-16T19:20:39Z</dc:date>
    </item>
    <item>
      <title>Re: I am trying to remove "priority" from the "ticket" page.  I only see  "Session" and "Attachments" (I already removed "location")</title>
      <link>https://www.servicenow.com/community/itsm-forum/i-am-trying-to-remove-quot-priority-quot-from-the-quot-ticket/m-p/796088#M367867</link>
      <description>&lt;P&gt;Hi &lt;SN-MENTION class="sn-mention" table="live_profile" sysid="169ecae9dbd41fc09c9ffb651f961975"&gt;@Allen A&lt;/SN-MENTION&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Please find below Code for the OOB widget I am referring to .Please review and let me know how can I make changes .&lt;/P&gt;
&lt;P&gt;Also I am looking for adding a new field called Assignment group on this Widget , please guide.&lt;/P&gt;
&lt;P&gt;HTML Template :&lt;/P&gt;
&lt;PRE class="language-markup"&gt;&lt;CODE&gt;&amp;lt;!-- HRM Case Info STARTS --&amp;gt;
&amp;lt;div id="case_info_{{data.caseNumber}}" ng-if="data.caseTitle &amp;amp;&amp;amp; data.showHeader" class="panel-title info caseInfo" ng-class="{'info-top': !data.isSummary &amp;amp;&amp;amp; !mobileDevice}"&amp;gt;
	&amp;lt;i alt="{{data.caseTitle}}" aria-hidden="true" ng-if="!data.isSummary"&amp;gt;&amp;lt;/i&amp;gt;
	&amp;lt;div class="row" ng-if="!data.isSummary"&amp;gt;
		&amp;lt;div&amp;gt;
			&amp;lt;h1 class="case-title" ng-class="{'case-mobile-title' : mobileDevice}"&amp;gt;
            {{data.caseTitle}}
         &amp;lt;/h1&amp;gt;
		&amp;lt;/div&amp;gt;
	&amp;lt;/div&amp;gt;
	&amp;lt;div class="row" ng-class="{'info-split':!mobileDevice}"&amp;gt;
		&amp;lt;!--Left side elements - Case Number, state, updated and Cancel Request--&amp;gt;
		&amp;lt;div class="col-sm-6 header-info" ng-if="!data.isSummary"&amp;gt;
			&amp;lt;ul id="case-title-footer-left"&amp;gt;
				&amp;lt;li class="case-number" ng-class="{'row col-xs-12':mobileDevice}"&amp;gt;
                  ${{{data.caseNumber}}}
               &amp;lt;/li&amp;gt;
				&amp;lt;li class="header-sub-components state"&amp;gt;
                  {{data.state}}
                  
					&amp;lt;span ng-show="data.transferredTo"&amp;gt; - ${Transferred to}
                  
						&amp;lt;span ng-if="data.isHRCase"&amp;gt;
							&amp;lt;a href="{{data.transferredToUrl}}" target="_blank"&amp;gt;{{data.transferredToDisplayValue}}&amp;lt;/a&amp;gt;
						&amp;lt;/span&amp;gt;
						&amp;lt;span ng-if="!data.isHRCase"&amp;gt;
                  {{data.transferredToDisplayValue}}
                  &amp;lt;/span&amp;gt;
					&amp;lt;/span&amp;gt;
				&amp;lt;/li&amp;gt;
				&amp;lt;li class="header-sub-components updated"&amp;gt;
                  ${uppercase_updated}
                  
					&amp;lt;sn-time-ago timestamp="data.lastUpdatedOn" /&amp;gt;
				&amp;lt;/li&amp;gt;
				&amp;lt;li ng-if="data.isCaseCancellable" class="header-sub-components cancel-request"&amp;gt;
					&amp;lt;a href="javascript:void(0)" class="link" ng-click="$event.stopPropagation();cancelCase()"&amp;gt;      
                  ${Cancel Request}
                  &amp;lt;/a&amp;gt;
				&amp;lt;/li&amp;gt;
			&amp;lt;/ul&amp;gt;
		&amp;lt;/div&amp;gt;
		&amp;lt;!--Next div elements - Details, Approvers, Attachments, History and Chat --&amp;gt;
		&amp;lt;div ng-if="data.infoTabs" class="col-sm-12 info-tabs" ng-class="{'info-tabs-bottom': !data.isSummary, 'todo-info-tabs': data.isSummary}"&amp;gt;
			&amp;lt;sp-widget widget="data.infoTabs"&amp;gt;&amp;lt;/sp-widget&amp;gt;
		&amp;lt;/div&amp;gt;
      	&amp;lt;div ng-if="!data.infoTabs &amp;amp;&amp;amp; data.isSummary &amp;amp;&amp;amp; !mobileDevice" class="todo-case-padder"&amp;gt;&amp;lt;/div&amp;gt; 
	&amp;lt;/div&amp;gt;
&amp;lt;/div&amp;gt;

&amp;lt;!-- Case info grid STARTS --&amp;gt;
 &amp;lt;div ng-if="data.defaultMoreInfo &amp;amp;&amp;amp; data.showHeader" id="detailsRow"&amp;gt;
   			&amp;lt;a ng-if="mobileDevice &amp;amp;&amp;amp; !data.infoTabs" id="more_information" href="javascript:void(0)" class="col-xs-12 custom-information" ng-click="moreInfoCollapsed = !moreInfoCollapsed" data-toggle="collapse" data-target="{{data.isSummary? '.todo-case-more-info': '.more-info'}}" aria-expanded="false"&amp;gt;
        ${More Information}
				&amp;lt;i ng-show="moreInfoCollapsed" class="fa fa-caret-down collapse-margin" aria-hidden="true"&amp;gt;&amp;lt;/i&amp;gt;
              	&amp;lt;i ng-show="!moreInfoCollapsed" class="fa fa-caret-up collapse-margin" aria-hidden="true"&amp;gt;&amp;lt;/i&amp;gt;
			&amp;lt;/a&amp;gt;
	&amp;lt;hr-m-custom-case-descriptor 
		hr-case-id="{{data.parentCaseId}}" 
		too-short-input="{{data.s2InputShort}}" 
		save="updateListFields(name, list)" 
		ng-class="{'custom-header-configurations' : !mobileDevice, 
                   'collapse': mobileDevice, 
                   'more-info': mobileDevice &amp;amp;&amp;amp; !data.isSummary, 
                   'todo-case-more-info':mobileDevice &amp;amp;&amp;amp; data.isSummary,
                   'todo-case-padder' : !mobileDevice &amp;amp;&amp;amp; data.isSummary}"/&amp;gt;
&amp;lt;/div&amp;gt; 
&amp;lt;!-- Case info grid ENDS --&amp;gt;
&amp;lt;!-- HRM Case Info ENDS --&amp;gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Client Script :&lt;/P&gt;
&lt;PRE class="language-markup"&gt;&lt;CODE&gt;function hrmCaseInfoController($scope, $http, spUtil, $timeout, spModal, i18n, $window) {
	var c = this;

	$scope.firstLoad = true;
	
	var MOBILE_DEVICE_SCREEN_WIDTH = 767;
	$scope.mobileDevice = c.data.isMobile || ($window.innerWidth &amp;lt; MOBILE_DEVICE_SCREEN_WIDTH);
	$scope.moreInfoCollapsed = true;

	$scope.$on('activitySetSelected', function(name, options) {
		if (options == null || !options.clickActivitySetFromMobile || options.uncheckViewAllToDosFromMobile) 
			 return;
		
		$scope.toggleShowHeader();
    });
	
	$scope.$on('sn_hr_sp.navigateToActivitySetList', function(name, options) {    
		$scope.toggleShowHeader();
    });
	
	$scope.toggleShowHeader = function() {
		c.data.showHeader = !c.data.showHeader;
	};
	
	$scope.loadData = function(callback) {		
		var input = {action:"loadData",
					 isSummary:c.data.isSummary,
					 parentCaseId:c.data.parentCaseId};
		$scope.server.get(input).then(function(resp){
			$scope.data = resp.data;
			callback();
		});
	};

	//Record watcher 
	spUtil.recordWatch($scope, "task", 'sys_id=' + $scope.data.parentCaseId, function(name) {
		if (name.data.changes.length &amp;gt; 0 || name.data.operation == "delete")
			$scope.loadData(init);
	});
	
	spUtil.recordWatch($scope, "sysapproval_approver", "sysapproval=" + $scope.data.parentCaseId, function(name) {
		if (name.data.changes.length &amp;gt; 0 || name.data.operation == "delete")
			$scope.loadData(init); 
	});
	
	$scope.cancelCase = function() {
		var confirmMsg = $scope.data.i18n.cancelMsgNoChildren;
		$http.get('/api/sn_hr_core/utils/getGlideRecord?sysparm_name=getGlideRecordSecureSetData&amp;amp;sysparm_tableName=sn_hr_core_case&amp;amp;sysparm_query=active=true^stateNOT IN1,3,4,7^parent=' + $scope.data.parentCaseId).then(function(response) {
				if (response.data &amp;amp;&amp;amp; JSON.parse(response.data.result).length &amp;gt; 0)
					confirmMsg = $scope.data.i18n.cancelMsgOpenChildren;
								
					spModal.confirm(confirmMsg).then(function() {
						$scope.data.action = 'cancelCase';
						$scope.server.update(init);
					});
			});
	};

	$scope.updateListFields = function(fieldName, list) {
		$scope.data.action = 'updateListFields';
		$scope.data.updateListFields.fieldName = fieldName;
		var fieldValues = [];
		for (var i = 0; i &amp;lt; list.length; i++) {
			fieldValues.push(list[i].id + '');
		}
		$scope.data.updateListFields.fieldValue = fieldValues;
		$scope.server.update(init);
	};

	function init (setFirstload) {
		if (setFirstload)
			$scope.firstLoad = false;
		
		if(!c.data.isSummary) {
			$timeout(function() {
				$rootScope.$broadcast('sp.update.breadcrumbs', $scope.data.breadcrumbs);
			});
		}
	}

	if (c.data.async)
		$scope.loadData(init);

	$scope.$on('sn_hr_sp.filterCountUpdate', function(event, taskInfo) {
		if (taskInfo == null || !$scope.firstLoad)
			return;

		$scope.data.hasTask = false;

		for (var pane in taskInfo.pane_filter) {
			if (taskInfo.pane_filter[pane] &amp;gt; 0) {
				$scope.data.hasTask = true;
				break;
			}
		}
		init(true);
	});


	$(document).ready(function() {	
		if ($scope.firstLoad){
			init(false);
		}
	});
	
}&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Server Script:&lt;/P&gt;
&lt;PRE class="language-markup"&gt;&lt;CODE&gt;(function() {
	data.isMobile = gs.isMobile();
	data.showHeader = true;
	
	data.s2InputShort = gs.getMessage("Please enter {0} or more characters");
	var grCase = new GlideRecord('sn_hr_core_case');
	data.updateListFields = {fieldName : "", fieldValue : []};

	if (input &amp;amp;&amp;amp; input.parentCaseId)
		data.parentCaseId = input.parentCaseId;
	else
		data.parentCaseId = options.sys_id || hr_PortalUtil.getParentFromUrl($sp.getParameter("sys_id"), $sp.getParameter("table"));
	
	if (input &amp;amp;&amp;amp; input.isSummary)
		data.isSummary = input.isSummary;
	else
		data.isSummary = options.isSummary? options.isSummary : false;
	
	if (input &amp;amp;&amp;amp; input.action == 'cancelCase') {
		grCase.get(data.parentCaseId);
		grCase.state = 7;
		grCase.update();
	}
	
	if (input &amp;amp;&amp;amp; input.action == 'updateListFields') {
		grCase.get(data.parentCaseId);
		var name = input.updateListFields.fieldName;
		var values = String(input.updateListFields.fieldValue);
		if (name) {
			grCase.setValue(name, values);
			grCase.update();
		}
	}
	
	data.async = true;
	if (data.async &amp;amp;&amp;amp; (!input || input.action != "loadData"))
		return;
	
	if (input &amp;amp;&amp;amp; !gs.nil(input.isOpen))
		data.isOpen = input.isOpen; 
		
	if (grCase.get(data.parentCaseId)) {
		var util = new hr_PortalUtil(grCase);
		
		data.caseTitle = util.getCaseTitle();
		data.openForView = util.isOpenedForView();
		data.isApprovalRequired = util.isApprovalRequired(data.parentCaseId, gs.getUserID());
		data.lastUpdatedOn = String(grCase.sys_updated_on);
		data.caseNumber = String(grCase.number);
		data.state = grCase.getDisplayValue('state');
		data.transferredTo = String(grCase.transferred_to);
		data.transferredToDisplayValue = grCase.transferred_to ? grCase.transferred_to.getDisplayValue() : '';
		data.isHRCase = new sn_hr_core.hr_CoreUtils().isCase(grCase.transferred_to.sys_class_name);
		data.transferredToUrl = "?id="+$sp.getParameter('id') + '&amp;amp;sys_id=' + data.transferredTo;
		data.defaultMoreInfo = showDetailsOption(grCase);
		
		data.breadcrumbs =[{label: data.caseTitle, url: '#'}];
		
		if (data.openForView || data.isApprovalRequired) {
			
			//Setting up case info - For OpenedFor Users View
			data.shortDescription = grCase.getDisplayValue('short_description');
			data.subjectPerson = grCase.getDisplayValue('subject_person');
			data.openedForPerson = grCase.getDisplayValue('opened_for');
			data.assignedTo = grCase.getDisplayValue('assigned_to');
			data.subjectPersonId = getProfileLink(String(grCase.subject_person));
			data.assignedToId = getProfileLink(String(grCase.assigned_to));
			data.openedForId = getProfileLink(String(grCase.opened_for));
			data.due = getDateLabel(grCase.getDisplayValue('due_date'));
			data.isCaseCancellable = checkCaseCancellable(grCase);

			data.infoTabs = $sp.getWidget('hrm-info-tabs', {
				sys_id : grCase.getUniqueValue(),
				isParentCase: true,
				isSummary: data.isSummary
			});
		} 
	} else {
			var task = new GlideRecord('task');
			if (task.get(data.parentCaseId))
				data.breadcrumbs =[{label: String(task.number), url: '#'}];
	}
		
	function getProfileLink(user){
		var link = user == gs.getUserID() ? '?id=hri_user_profile&amp;amp;sys_id=' : '?id=user_profile&amp;amp;sys_id=';
		return link + user;
	}
	
	function getDateLabel(date) {
		var gd = new GlideDate(); 
		gd.setValue(date);
		return gd.getDisplayValue();
	}
	
	function checkCaseCancellable(hrCase) {
		if (!hrCase.active || !data.openForView)
			return false;
		
		var caseOptions = hrCase.hr_service.case_options;
		var optionsGr = new GlideRecord('sn_hr_core_service_option');
		optionsGr.get('value', 'UserCannotCancel');
		if (!gs.nil(caseOptions) &amp;amp;&amp;amp; caseOptions.indexOf(String(optionsGr.sys_id)) &amp;gt; -1)
				return false;
		
		return true;
	}
	
	// determine whether to show Peoples row and Details row in the mobile view under more information
	function showDetailsOption(caseGr) { 
		var portalUtil = new hr_PortalUtil(caseGr);
		return portalUtil.getPeopleInfoFromCaseConfig().peoplesInfo.length &amp;gt; 0 || portalUtil.getAdditionalFieldsInfo().additionalFields.length &amp;gt; 0;		
	}
	
	data.i18n = {};
	data.i18n.cancelMsgNoChildren = gs.getMessage('Are you sure you want to cancel this case?');
	data.i18n.cancelMsgOpenChildren = gs.getMessage('Are you sure you want to cancel this case? Canceling this case will also close child cases.');
	
	})();&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 16 Jan 2020 19:50:05 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/i-am-trying-to-remove-quot-priority-quot-from-the-quot-ticket/m-p/796088#M367867</guid>
      <dc:creator>Mrman</dc:creator>
      <dc:date>2020-01-16T19:50:05Z</dc:date>
    </item>
  </channel>
</rss>

