Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

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
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.

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

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
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

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