Saviynt unveils its cutting-edge Intelligence Suite products to revolutionize Identity Security!
Click HERE to see how Saviynt Intelligence is transforming the industry.
Saviynt Copilot Icon

Tickets not created for Disable account and Remove access tasks.

Saviynt_Savvy
Regular Contributor II
Regular Contributor II

Hi,

I need to create the ticket in Freshservice for JML scenarios, I have made the below CREATETICKETJSON and it worked fine in version 23.9.

When I used the same JSON in v24.3, I couldn't create the ticket for Disable account JSON.
I am triggering the
Disable account task through the USER UPDATE RULE: Disable User Accounts.
Remove Access task through the ARS.

I think maybe the provisioning job is failing to pick up the Disable account/Remove access tasks.
Is there any Global Configuration setting that should be modified?
Please find the CREATETICKETJSON below:

CREATETICKETJSON:
{
"call": [
{
"name": "call1",
"connection": "acctAuth",
"url": "https://xxxxxx.freshservice.com/api/v2/tickets",
"httpMethod": "POST",
"httpParams": "{\"subject\":\"${((task.parenttask?.tasktype==3 || task.tasktype==3) && task.source=='ZERODAY') ? 'Onboard - Add Account Ticket : '+user.username +'-'+user.startdate.format(\"MMMM dd yyyy\"):(task.tasktype==14 && task.source=='PROVRULE') ? 'Offboard - Disable Account Ticket: '+user.username+'_'+user.enddate.format('MM/dd/yy'):((task.tasktype==1 || task.tasktype==2) && task.source=='REQUEST') ? 'ARS - Add\/Remove Access Ticket: '+user.username+'_'+task.taskdate.format('MM/dd/yy'):((((task.tasktype==1 || task.tasktype==2) && task.source=='ZERODAY') && task.parenttask==null)|| (task.tasktype==12)) ? 'Mover - Update User RBAC: '+user.username+'_'+task.taskdate.format('MM/dd/yy'):''}\",\"email\":\"xxxxx.xxxx@yyyyyzzzz.com\",\"description\":\"<div>${((task.parenttask?.tasktype==3 || task.tasktype==3) && task.source=='ZERODAY') ? 'The below user is Onboarded.': (task.tasktype==14 && task.source=='PROVRULE') ? 'The below user is Offboarded.':((task.tasktype==1 || task.tasktype==2) && task.source=='REQUEST') ? 'Update the Requested Entitlements in the Freshservice.':((((task.tasktype==1 || task.tasktype==2) && task.source=='ZERODAY') && task.parenttask==null)|| (task.tasktype==12)) ? 'Update the below user Account & Access':''}<div><div><strong>Name : </strong>${task.accountName}<div><strong>${((task.parenttask?.tasktype==3 || task.tasktype==3) && task.source=='ZERODAY')?'Hiredate:':task.tasktype==14?'Enddate:':((((task.tasktype==1 || task.tasktype==2) && task.source=='ZERODAY') && task.parenttask==null)|| (task.tasktype==12))?'Update Date:':((task.tasktype==1 || task.tasktype==2) && task.source=='REQUEST') ? 'Requested Date:' :''}</strong> ${((task.parenttask?.tasktype==3) || task.tasktype==3) ? user.startdate.format('MM/dd/yy'):task.tasktype==14 ? user.enddate.format('MM/dd/yy'):((((task.tasktype==1 || task.tasktype==2) && task.source=='ZERODAY') && task.parenttask==null)|| (task.tasktype==12)) ? task.taskdate.format('MM/dd/yy'):((task.tasktype==1 || task.tasktype==2) && task.source=='REQUEST') ? task.taskdate.format('MM/dd/yy'):''} </div><div><strong>Department :</strong>${user.departmentname}</div><div><strong>Email :</strong> ${user.email}</div><div><strong>Endpoint :</strong> ${task.endpoint}</div><div><strong>${task.endpoint.endpointname=='FreshService_Ticketing_EP' ? 'Requested Entilements:':''}</strong><div> ${allEntitlementsValues.replace('(','').replace(')','').replace(',',',<div>')}</div>\",\"priority\": 1, \"status\": 2,\"workspace_id\":${(task.endpoint.endpointname=='FreshService_Ticketing_EP') ? '2':(task.endpoint.endpointname=='JA_UC2') ? '3':''}}",
"httpHeaders": {
"contentType": "application/json",
"Authorization": "${access_token}"
},
"httpContentType": "application/json",
"ticketidPath": "ticket.id",
"unsuccessResponses": {
"message": "Failed"
}
}
]
}

Thanks & Regards.
SaviyntSavvy

1 REPLY 1

rushikeshvartak
All-Star
All-Star

Run specific task id from wsretry 


Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.