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.

Project Workspace status report - add custom field to the "Status History" dynamic content

Attila Beregvar
Kilo Sage

Hello Community,

 

On the new project workspace, Status Reports are built on doc templates, utilizing dynamic contents. I would like to add a custom field to the Status History block of the status report, but only the ootb fields are showing up while inserting the dynamic content:

AttilaBeregvar_0-1748434381222.png

Custom fields are generally available at other parts of the report, I can select them as a dynamic content, but not available in the Status History block - I assume there is a script/API that builds this Status History block somewhere in the background, but I couldn't find anything related yet.

Does anyone have an idea how to make other fields available in the Status History?

Thanks!

1 ACCEPTED SOLUTION

Govardhan7
ServiceNow Employee
ServiceNow Employee

StatusReportDynamicTemplateDataProviderSNC is a read-only Script Include designed to prevent direct customization. To support extensibility, we’ve provided an extension Script Include named StatusReportDynamicTemplateDataProvider, which allows you to override functions from the SNC version.

You can override the fetchStatusDataRecords function in the extension script to incorporate your custom logic.

View solution in original post

6 REPLIES 6

mev
Tera Contributor

Hey @SravyaPangu were you able to get your override working?

 

Thanks,

Patrick

SravyaPangu
Tera Contributor

@mev Yes I was able to get them working. I think I had to add them in PmProjectStatusReport - 

getStatuses and otherStatusSummary function to display them in the status history too. 
I don't remember exactly but I think you can start by looking into above functions.