Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

Cancel UI action for Stories

brianlan25
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

 

 

*************************************************************************************************************
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/dratulgrover [ Connect for 1-1 Session]

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

View solution in original post

5 REPLIES 5

Dr Atul G- LNG
Tera Patron

Hi @brianlan25 

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.

*************************************************************************************************************
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/dratulgrover [ 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 @brianlan25 

take reference:

 

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

*************************************************************************************************************
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/dratulgrover [ 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?