Help me to create List choice UI Action with Script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-25-2023 03:15 AM
Create a new UI action(List action) "Reset Task state for mass update" on the HR task table with "List choice" to "true" to display only to the users with "sn_hr_core.case_writer" role and current.state! = 3 (closed complete) and HR task type is "integration" and "Correlation ID" contains "PROCESSING FAILED" when clicked on the list action should display a confirmation pop-up when licked on "Ok" the set the below field values in the HR task
Task Type: Integration
HR Task state – ready
Assignment Group – empty
Correlation ID– empty
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-25-2023 03:56 AM
Hi @Deactivate User ,
You can user below mentioned code just do change filed name and field values, I added as per my knowledge.
User these configurations:
Please mark helpful and accept solution if it helped you.
Regards,
shivangi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-25-2023 04:42 AM
can you please paste the full condition you added in the condition bar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-25-2023 04:50 AM
Hi @Deactivate User ,
here it is:
gs.hasRole("sn_hr_core.case_write")&&(current.state!=3)&&(current.hr_task_type='integeration')&&(current.correlation_id.indexOf("PROCESSING FAILED"));
Please mark helpful and accept solution if it helped you.
Regards,
Shivangi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-25-2023 06:32 AM
 Added the same script but this UI action is not updating the HR task fields