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.

Problem Tasks redirecting to Parent when clicking on Start Work UI Action

EricG2
Tera Guru

I thought this would  have been an easy task.

Our Problem Manager would like us to modify the OOB UI Action "Start Work".
Currently, when you click this button, the state changes to "Work in Progress", closes, and redirects the user to the Parent Ticket.

EricG2_0-1777378989680.png

EricG2_1-1777379024410.png

I've started by changing line 10 to g_form.update(); and adding 

action.setRedirectURL(current);.
I get error "update" is not a function or if I use g_form.save();, i get "action" is not defined.
 
Comparing other UI actions, this should work.
Any suggestions?
 

 

8 REPLIES 8

@EricG2 

then is there any customization done?

this is my PDI screenshot

Did you check with other browser and with different users?

55.png

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 10x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

There is a BR that creates the RCA PTASK when parent state is Root Cause Analysis.

I think this is the issue and investigating.  Thanks.

Tanushree Maiti
Kilo Patron

Hi @EricG2 

 

change it to 

current.update();
action.setRedirectURL(current);

 it will work.

 

 

 

 

Please mark this response as Helpful & Accept it as solution if it assisted you with your question.
Regards
Tanushree Maiti
ServiceNow Technical Architect
Linkedin:

I tried that and get 

current.update();
action.setRedirectURL(current);

 

i get "current" is not defined.