ui action
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-07-2024 04:58 AM
When a Requested Item (RITM) is cancelled or rejected, it is often moved to a closed state (Closed Skipped or Closed Incomplete). Sometimes, there is a need to restart these items and their associated workflows. This process involves:
Creating a UI action that is available only when the RITM is in a specific state (Closed Skipped or Closed Incomplete).
Ensuring that only users with the catalog_admin role can see this UI action.
If Parent REQ is closed, mark as active and set state to Pending Approval. Restart workflow
Updating the state of the RITM and its parent REQ.
Restarting the associated workflow.
Adding a work note indicating that the request has been restarted by the current user.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-07-2024 09:52 PM
Hi @rognomolta ,
Please refer below link
Please mark helpful if it's really worthy for you.
Thanks,
BK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-08-2024 12:55 AM
Hi @rognomolta,
You may try with the following code and for accessibility you need to write the following condition in UI action.
Attaching screenshot for reference.
gs.hasRole("catalog_admin")&& (current.state == '3' || current.state == '4' || current.state =='7') // this stating that user who has catalog_admin role and RITM state is in close complete, close incomplete, close skipped is able to see the button.
Script:
Please mark my response as correct and helpful if it helped solved your question.
Thanks,
Rohit Suryawanshi