Quantcast
Channel: Ivanti User Community : Discussion List - All Communities
Viewing all articles
Browse latest Browse all 15294

Get CurrentUser in calculation precondition

$
0
0

Hi,


I need to let only 'created by' user and 'Raise User' to close an incident


I create a precondition with calculation ype to test if created by ( or raise user) is the current user

My code is :


import System

static def GetAttributeValue(Incident):

Value = 'False'

if Incident.RaiseUser== '$CurrentUser$' or Incident.CreationUser =='$CurrentUser$': Value = 'True'

return Value


This is not working for me.

How can I solve this.What is wrong?


Please see attached file to have an idea of my resolution process part


Thanks

 

Regards


Viewing all articles
Browse latest Browse all 15294

Trending Articles



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