RITM to create a Story

Vengeful
Mega Sage

Hi, I receive a requirement that when the RITM is approved, it will create a story.

This is the workflow of the catalog item and I am planning to add run script to create story.

Is this possible? 

Vengeful_0-1723518468068.png

Anyone can help with the script?

1 ACCEPTED SOLUTION

olimanalo
Mega Guru
Mega Guru

Hi @Vengeful ,

 

You can use the create task instead of running a script if this is a straightforward creation. 

olimanalo_0-1723523616038.png

 

Thank you

 

View solution in original post

4 REPLIES 4

Sumanth16
Kilo Patron

Hi @Vengeful ,

 

Please prove the code in the run script activity 

 

Plz mark my solution as Accept, If you find it helpful.

 

 

Thanks & Regards,

Sumanth meda

olimanalo
Mega Guru
Mega Guru

Hi @Vengeful ,

 

You can use the create task instead of running a script if this is a straightforward creation. 

olimanalo_0-1723523616038.png

 

Thank you

 

Hi @olimanalo ,

 

I tried and it worked, but they want to map the catalog item variables to the description field in the Story.

Also the attachment.

We can map this as long as there is a relationship in the rm_story table and sc_req_item table. Here's my idea:

  • Create a new reference field in the Story table, reference is Requested Item record. Then on the create task activity, reference the requested item to the story record to be created. Once we have the relationship, we can get the variable.
  • Regarding the attachment, once reference is established, you can create a business rule to copy attachment from parent (requested item) to child (story)
  • I suggest also to transfer the workflow into a flow designer to make it easily maintainable. That is a suggestion only. That may take time, but it is worth it. 

Thank you,

Oli