and more in a single search tool across platforms. Read the announcement here. |
04/09/2024 08:09 AM
Hello,
Through rest, we have a connection to service desk. We create incidents/ tickets to give app owners useful information from the form and user table.
Here to push entitlement business justification, I used variable ${businessJustification}. It works for one entitlement. However, when I request two entitlements, it only shows business justification of one.
Any way to push all business ents irrespective of the number?
Thanks in advance.
04/09/2024 09:13 AM
Can you share full json
04/09/2024 09:20 AM
04/09/2024 09:26 AM
${task?.comments}
04/09/2024 09:33 AM
It gives null:
Business Justification: null
Probably because the request comments is null. But I jhad separately filled out business justification for both roles and none of those are showing
04/09/2024 10:36 AM
${request.comments}
04/09/2024 10:50 AM
Both ${request.comments} and ${request?.comments} are giving errors
04/09/2024 10:54 AM
${if(taskIds != null && taskIds.size()>0){String result='';ArrayList arr = new ArrayList(taskIds); arr.eachWithIndex{ val, idx -> com.saviynt.ecm.task.ArsTasks.get(val)?.entitlement_valueKey!=null?result=result.concat(com.saviynt.ecm.task.ArsTasks.get(val)?.tasktype==1?'ADD:: ':com.saviynt.ecm.task.ArsTasks.get(val)?.tasktype==31?'Extend End Date :: ':'REMOVE :: ').concat(com.saviynt.ecm.task.ArsTasks.get(val)?.entitlement_valueKey!=null?com.saviynt.ecm.task.ArsTasks.get(val)?.entitlement_valueKey?.entitlementtypekey.entitlementname+' : ':'').concat(com.saviynt.ecm.task.ArsTasks.get(val)?.entitlement_valueKey?.entitlement_value).concat(' : Access Start Date - ' + com.saviynt.ecm.task.ArsTasks.get(val)?.requestAccessKey?.startdate).concat(' : Access End Date - ' + com.saviynt.ecm.task.ArsTasks.get(val)?.requestAccessKey?.enddate).concat(' : Approved By - ' + com.saviynt.ecm.identitywarehouse.domain.Users.get(com.saviynt.ecm.task.ArsTasks.get(val)?.requestAccessKey?.collect{it.ae.findAll{it.jbpmActivityName.toString().equalsIgnoreCase('OwnerApproval')}}?.collect{it.approveby}.get(0).get(0)).displayname).concat('\\\\n'):'';}; return result}else{return '';}}
04/10/2024 03:09 AM
Hi,
Can I get clarification on this code? Not seeing which part should give business justification.
04/10/2024 08:30 PM
Sample to get all taskids change logic as per your requirements