- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-19-2022 06:33 AM
Hello Community,
As per my requirement there will be a task generated to security team and then user will get added to ad group . If once ritm state changes to closed complete then close notes should get updated. Please help me with this. Which activity i need to give in workflow , so that close notes of ritm will get updated .
script i have written :
var req_for = current.request.requested_for.getDisplayValue();
ritm.work_notes = ' User ' + current.variables.requested_by_zid + ' has been added to ' + current.cat_item.group.getDisplayValue() + ' as requested.
Please help me with this , once ritm gets closed complete then close notes should get updated.
Thanks,
Thanuja.
Solved! Go to Solution.
- Labels:
-
Change Management

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-19-2022 06:44 AM
What is your issue here?
You can leverage your Run script activity to update the work notes or close notes.
Instead of ritm.work_notes use current.work_notes
Copy as is:
var req_for = current.request.requested_for.getDisplayValue();
current.work_notes = ' User ' + current.variables.requested_by_zid + ' has been added to ' + current.cat_item.group.getDisplayValue() + ' as requested.
Feel free to mark correct, If I answered your query.
Will be helpful for future visitors looking for similar questions 🙂
Aman Kumar

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-19-2022 06:44 AM
What is your issue here?
You can leverage your Run script activity to update the work notes or close notes.
Instead of ritm.work_notes use current.work_notes
Copy as is:
var req_for = current.request.requested_for.getDisplayValue();
current.work_notes = ' User ' + current.variables.requested_by_zid + ' has been added to ' + current.cat_item.group.getDisplayValue() + ' as requested.
Feel free to mark correct, If I answered your query.
Will be helpful for future visitors looking for similar questions 🙂
Aman Kumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-19-2022 06:50 AM
actually that close notes should get updated in ritm , then after the catalog task i created for security services team , now i should take run script activity and write the above code u mentioned right?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-19-2022 06:51 AM
Yes
Aman Kumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-19-2022 06:53 AM
this close notes should get updated after the state in ritm changes to closed complete.