How to add close notes in RITM if once state changes to closed complete in workflow

thanuja
Kilo Contributor

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.

1 ACCEPTED SOLUTION

Aman Kumar S
Kilo Patron

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 🙂

 

Best Regards
Aman Kumar

View solution in original post

7 REPLIES 7

Aman Kumar S
Kilo Patron

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 🙂

 

Best Regards
Aman Kumar

@Aman Kumar 

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?

Yes

Best Regards
Aman Kumar

@Aman Kumar 

this close notes should get updated after the state in ritm changes to closed complete.