Force Check-in all via a PSI job?

B

Brian Lukanic

I'm fully patched on PS2007 (current up to the August 2009 CU.) So although
we don't have any lingering issues with "stuck checkins," we do have a
variety of habits by each of our PMs. Our use of Server rquires that
occasionally somebody else open a PM's schedule to make an edit, or we'll
occasionally use a VBA "feeder" to populate non-required Project-level
fields. So we need these projects checked in each night.

Some PMs keep things always checked out, some check back in after every save
- and everything in between. I am aware that you can force checkin an
enterprise object via the web admin page - but is there any way I can set a
nightly job on the server to "force checkin all checked out objects?" Sort of
a "checkin *.*" type of thing.

Does anybody have code that they would be willing to share?

Although I will make clear the SOPs I want our staff to follow, I do want
the ability to
 
M

Maik

Hello Brian,

you can get a list of projects with the ReadProjectStatus method from the
ProjectWebService
(http://msdn.microsoft.com/en-us/library/websvcproject.project.readprojectstatus.aspx)

PROJ_CHECKOUTBY column tells you if a project is checked out.

With the QueueCheckInProject method from the ProjectWebService
(http://msdn.microsoft.com/en-us/library/websvcproject.project.queuecheckinproject.aspx)
you can check in projects (specifiy the bool force parameter to force a
CheckIn).

Remember that you need ProjectServer Administrator privileges to get and
check in all projects, if you use other credentials you will get the
ProjectList filtered for the credentials you are using.

If a PM has unsaved changes to an checked out project, e.g the PM has the
ProjectProfessional client running with an open project on his desktop and
"forgot" to saved his data, the PM will get a MessageBox that the project is
not checked out.

Greets
Maik
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top