We're reclaiming inactive PDIs to keep them available for active builders. Learn what's changing, who's affected, and how to protect your work. Read More

Enhancement to Story Creation

pramodkumar
Tera Expert

Hi All,

I would like to generate a story as soon as an enhancement is created and add that story to a backlog. How can we automate this?

 

 

Thanks!

2 REPLIES 2

Eshwar Reddy
Kilo Sage

Hi @pramodkumar 

There are two ways to accomplish this: you can either use Flow Designer or Business Rules.

 

BR Script -> Choose "After" to trigger the rule after an enhancement is created.

Table: enhancement

 


var story = new GlideRecord(''); -> give story table name
story.initialize();
story.short_description = current.short_description; 
story.description = current.description;
story.priority = current.priority;
story.state = 'New'; 
story.insert();

 

Please mark this response as Correct and Helpful if it helps you can mark more that one reply as accepted solution

Dr Atul G- LNG
Tera Patron

Hi @pramodkumar 

 

The best way is Flow designer but you need to ensure the story has the information like Epic, project, theme, short description, description and AC.

*************************************************************************************************************
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG

****************************************************************************************************************