Quantcast
Channel: Ivanti User Community: Message List
Viewing all articles
Browse latest Browse all 13696

Re: Show Response Level in Process query

$
0
0

Hi Adam,

 

One variation on the above techniques to add is to use a calculation to copy the value.  Create a new String attribute on the Process object then create a calculation to grab the Response Level's Title if the Process record is an Incident:

 

import System
static def GetAttributeValue(Process):     Value = ""     if Process.Class.Name == "Incident":          Value = Process.ResponseLevel.Title     return Value

 

(you can also add more "if" statements to get different values for Changes, Problems, etc.)

 

You need to either use an After Read calculation type which will cause it to go and get the value each time you view the query, or if this causes performance to degrade you can use a Before Save calculation with a dependency of LastUpdate which will cause the calculation to save the value each time your Incidents are updated.  You can't use the Response Level itself as a dependency because you can only track attributes from the Process object itself.

 

I hope that helps.


Viewing all articles
Browse latest Browse all 13696

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>