Unable to find workspace UI action "Restart Phase" in Digital Product Release workspace.

NishantR
Tera Contributor

Hi Channel,

please guide me where is "Restart phase" action on DPR workspace can be found. This action changes the pending phase task status to closed complete , i want to figure out where this logic is written so that i can update it to be closed cancelled.

Please note , i have searched in all the normal UX page form/list/action assignment configurations.

Attached the screenshot of the button and workspace.

Regards,

Nishant

 

 

 

2 ACCEPTED SOLUTIONS

Sai Teja1
ServiceNow Employee

@NishantR  You can select Read-only property (right panel) for 'Approval select' component (left panel). See screenshot for reference.

Go to this page in UIB -> /now/builder/ui/edit/experience/fe72c9ef43012110509fb18afab8f2b6/d4e4608e53413110bf7eddeeff7b120a/77d4208e53413110bf7eddeeff7b12aa/params/is-headless-viewport/true/parent-screen-id/8e99e66f43e2211092fef6be5bb8f2a3/parent-element-id/viewport_mkl

 

Note: This would cause customization, meaning that update xml will be created preventing future updates to this modal.

View solution in original post

Sai Teja1
ServiceNow Employee

@NishantR That might be bit complex change, but you can start by analysing "Load cards" client script in Release execution page -> /now/builder/ui/edit/experience/fe72c9ef43012110509fb18afab8f2b6/8699e66f43e2211092fef6be5bb8f2ca/8e99e66f43e2211092fef6be5bb8f2a3/params/is-headless-viewport/true/parent-screen-id/44c7e2a743e2211092fef6be5bb8f288/parent-element-id/viewport_vyr

 

All the data is processed in from this client script include -> sys_ux_client_script_include.do?sys_id=72feeb68531f6110bc5bddeeff7b127a

Check 'getKanbanCardsMetadata' and other functions within the client script include.

 

Analysing the flow of code, playing around it and tweaking things can help with understanding how things are wired up to present the data on UI.

View solution in original post

16 REPLIES 16

I'm curious about the reason for frequently tagging product managers in your replies. This is the second time I've noticed this pattern. I'm not sure I fully understand the value of this approach. Their time is just as valuable as everyone else's.This sets an unhealthy precedent of let's just tag the SN product owners who are active in the community to look like being a community member who contributes. Given that you have contributed in many other ways to your community, I think your time is more valuable than tagging PMs in community posts when you don't know the answe

NishantR
Tera Contributor

@Balaji39  Could you please help us here?

 

Sai Teja1
ServiceNow Employee

Hi @NishantR 

You can find the button as part of Release Execution UIB Page -> Release phase actions dropdown component and click on List items property (attached screenshot)

/now/builder/ui/edit/experience/fe72c9ef43012110509fb18afab8f2b6/8699e66f43e2211092fef6be5bb8f2ca/8e99e66f43e2211092fef6be5bb8f2a3/params/is-headless-viewport/true/parent-screen-id/44c7e2a743e2211092fef6be5bb8f288/parent-element-id/viewport_vyr

 

A click on this button will launch a viewport (attached ss)

/now/builder/ui/edit/experience/fe72c9ef43012110509fb18afab8f2b6/830f24bb9fb442102cc74d837a0a1c09/970f24bb9fb442102cc74d837a0a1c0f/params/is-headless-viewport/true/parent-screen-id/8e99e66f43e2211092fef6be5bb8f2a3/parent-element-id/viewport_3

 

Eventually, it will call our Restart release rest api

/sys_ws_operation.do?sys_id=247b78c343a8c210ab16fc4bbcb8f2fe

/sys_script_include.do?sys_id=d0d103f34fe1e150cab305d4d4ad48c6 (restartRelease function)

@Sai Teja1  Thanks for the information , i checked the URLs but still unable to understand how can i make old release phase task to close incomplete instead of closed complete. Could you please guide me.

Additionally if i want to make 'Need approval' drop down field to read-only ( when "add task" button is clicked ) , how can i do that?

 

Regards,

Sai Teja1
ServiceNow Employee

@NishantR 

From DPR we just set the Active field to false. You can refer the function 

'marksTasksAsInactive' from SI -> /sys_script_include.do?sys_id=ReleaseTaskSNC
 

The actual state management is happening at parent Task level. It's default behaviour is to set State to 'Close complete' when Active field is set to false.

You can review this BR which is triggered when active is set to false -> sys_script.do?sys_id=475ef3c5c611228401440a7a5f29a786

 

Within the BR, the default is being taken as Closed Complete - Check 

_getDefaultClose function in -> /sys_script_include.do?sys_id=96e1ade7c0a80a6d381ba0c6aeb4ad61