Copy OOB fields of demand to Project

HimanshiKumrawa
Tera Contributor

Hi All,

 

We have a requirement to get the list of OOB fields which all get copied form demand to Project once project is created out of demand.

Please suggest.

Regards,
Himanshi K

1 ACCEPTED SOLUTION

Neeraj Modi
Tera Guru

We have a UI action on the Demand form called "Create Project" inside this UI Action we're calling SI named as "AjaxCreateRelatedEntityFromDemand" from this Script include we're calling one more SI named as "DemandToProjectCreationHelper" in this Script include check the function "createProject" you'll be able to locate the fields array.

Pasting those fields(from "createProject" function) from the Sandiago version instance:
var fields = ['short_description', 'description', 'primary_program', 'business_case', 'sys_domain', 'investment_class', 'investment_type', 'risk_of_performing', 'risk_of_not_performing', 'enablers', 'barriers', 'in_scope', 'out_of_scope', 'assumptions', 'goals', 'primary_goal', 'strategic_objectives', 'business_unit', 'department', 'impacted_business_units', 'business_applications', 'business_capabilities',
'cmdb_ci', 'company', 'priority', 'urgency', 'impact', 'rate_model', 'project_manager', 'project_currency', 'approved_start_date', 'approved_end_date','calculation_type', 'data_separated_by'
];

Please mark the suggestion as helpful, if you find it useful to you or others who wants to refer similar content.
Please mark the solution as correct, if the answer provided by me has resolved your query.
Thank you!

View solution in original post

4 REPLIES 4

Neeraj Modi
Tera Guru

We have a UI action on the Demand form called "Create Project" inside this UI Action we're calling SI named as "AjaxCreateRelatedEntityFromDemand" from this Script include we're calling one more SI named as "DemandToProjectCreationHelper" in this Script include check the function "createProject" you'll be able to locate the fields array.

Pasting those fields(from "createProject" function) from the Sandiago version instance:
var fields = ['short_description', 'description', 'primary_program', 'business_case', 'sys_domain', 'investment_class', 'investment_type', 'risk_of_performing', 'risk_of_not_performing', 'enablers', 'barriers', 'in_scope', 'out_of_scope', 'assumptions', 'goals', 'primary_goal', 'strategic_objectives', 'business_unit', 'department', 'impacted_business_units', 'business_applications', 'business_capabilities',
'cmdb_ci', 'company', 'priority', 'urgency', 'impact', 'rate_model', 'project_manager', 'project_currency', 'approved_start_date', 'approved_end_date','calculation_type', 'data_separated_by'
];

Please mark the suggestion as helpful, if you find it useful to you or others who wants to refer similar content.
Please mark the solution as correct, if the answer provided by me has resolved your query.
Thank you!

If logging time to demands, does the time move with the demand when the demand is converted to a project?  Is this OOB functionality?

Ankur Bawiskar
Tera Patron
Tera Patron

@HimanshiKumrawa 

check analysis shared by Neeraj

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

HimanshiKumrawa
Tera Contributor

Thank you @Neeraj Modi  and @Ankur Bawiskar for the quick help.