How to Develop "ADD" button under related records for SOW

Pradeep Thipani
Mega Sage

Open Service operation workspace -> Open any problem Record-> Go to Problem Task related record tab.

 

Requirement: Add button should available, when click on add button it should bringup problem Task records and after hitting add record should get attached to problem task related record.

"If this response was useful, please select 'Accept as Solution' and mark it as 'Helpful.' This helps me provide better answers and assists the community ".

Regards,
Pradeep
15 REPLIES 15

Mark Manders
Mega Patron

A problem task is a record created to assist in solving a problem. The relationship between Problem and Problem Task is one to many (one problem can have multiple tasks, but one task can only be for one problem. Hence: it doesn't make sense to have a Problem task in the system, unrelated to any problem, and it doesn't make sense to add it in the way you are describing. What is your use case? What issue are you trying to resolve?
It's not like adding Incidents to a problem, which does make sense, because that's something that could be done afterwards.


Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark

Pradeep Thipani
Mega Sage

In the Native UI we had Edit button which adds the PTask to problem under related records the requirement is to add ADD button in SOW for the same Problem Task related record. 

"If this response was useful, please select 'Accept as Solution' and mark it as 'Helpful.' This helps me provide better answers and assists the community ".

Regards,
Pradeep

Hi @Pradeep Thipani 

 

Edit button is used, when you want to map other ptask to your Problem record but add means you are creating fresh ptask on that prb.

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

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

Dr Atul G- LNG
Tera Patron
Tera Patron

HI @Pradeep Thipani 

 

Not sure what is your exact use case here. 

 

Requirement: Add button should available, when click on add button it should bringup problem Task records and after hitting add record should get attached to problem task related record.

Atul: OOTB Add button available on Ptask and when a user click on this is build a relationship with problem record

LearnNGrowAtul_0-1707211875304.png

 

 

So what you want is already available OOTB.

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

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