Project and Portfolio Management Practitioners Forum
cancel
Showing results for 
Search instead for 
Did you mean: 

Close staffing profile automatically when a project is closed

SOLVED
Go to solution
Highlighted
Jaypriya
Acclaimed Contributor

Close staffing profile automatically when a project is closed

Is there a way to close the staffing profile automatically when the project closes?
1 REPLY
Erik Cole
Honored Contributor
Solution

Re: Close staffing profile automatically when a project is closed

You can use a workflow execution step to close all of the associated entities (SP, Budget, Benefit, Workplan). Here are the commands:

ksc_set_staffing_profile_status USE_NAMES_FLAG="N" STAFF_PROF_IDS="[REQ.P.KNTA_STAFFING_PROFILE]" STATUS_NAME="Completed" STATUS_CODE="3"

ksc_set_budget_status USE_NAMES_FLAG="N" BUDGET_IDS="[REQ.P.KNTA_BUDGET]" STATUS_NAME="Closed" STATUS_CODE="CLOSED"

ksc_set_financial_benefit_status USE_NAMES_FLAG="N" FINANCIAL_BENEFIT_IDS="[REQ.P.KNTA_FINANCIAL_BENEFIT]" STATUS_NAME="Closed" STATUS_CODE="CLOSED"

ksc_update_workplan_status STATUS="COMPLETE"
//Add this to "OnDomLoad" event