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.

Cancel UI action for Stories

Brian Lancaster
Kilo Patron

I need to build a cancel UI Action for Stories in the agile module. How can I get a popup similar with the Cancel Change UI action where it asks for a reason and then posts that to the work notes?

1 ACCEPTED SOLUTION

https://www.servicenow.com/community/csm-forum/ui-action-cancel-button/m-p/2522426

 

 

*************************************************************************************************************
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]

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

View solution in original post

5 REPLIES 5

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @Brian Lancaster 

You can use the out-of-the-box "Cancelled" state and make the cancellation reason mandatory. This approach will help you avoid both technical debt and unnecessary customization.

*************************************************************************************************************
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]

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

We are making state read only as part of a new process in agile. There is no cancel reason in stories.

Hi @Brian Lancaster 

take reference:

 

https://INSTANCENAME.service-now.com/now/nav/ui/classic/params/target/sys_ui_action.do%3Fsys_id%3D4f...

*************************************************************************************************************
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]

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

Ok, I have looked at that but I don't know how the 

var changeConfirmCancelDialog; works or were it is configured at so I can create something similar for stories. If used this would it not just pop-up a window that says cancel change even though I'm in a story?