VBA code to run against Microsoft Project Templates - vba

I have to generate macros to be run in Microsoft project.
I am not able to perform the calculations to get a result, even after a lot of research.
It is 14 quality checks for your IT project schedule.
I am trying to perform the easiest one first that is Resource Check.
Resources Check identifies all the tasks that do not have resources (people or costs) assigned. A quality schedule has all resources assigned to tasks in the schedule.
Green Flag = < 5% of tasks meeting any of the above logic.
Red Flag = > 5% of tasks meeting any of the above logic.
How do I perform this?

Try googling Eversight for Microsoft Project - it's a free add on for project 2010 that allows you to set up your own quality check profiles, including your own RAG thresholds.

Related

Nintex / SharePoint upgrade

My team is embarking on moving from SharePoint 2010 to SharePoint 2016 with Nintex. They want to move content on an individual basis.
However, we also need to move running workflows and keep these intact.
What's the process of moving Nintex workflows and lists from SP2010 to a SharePoint 2016 environment?
Need to ensure the workflows/lists remain with the correct status
Thanks
You cannot move running workflows in SharePoint. The best suggestion is to pause or end the workflow, save the status and then kick them off after you move them. I recommend trying to complete whatever process is running before moving that content or workflow. This means scheduling the migration around business processes or informing your users that SharePoint will be down for a period of time. You can also copy the workflow and list over to the new site and have users start using that one while you wind down the old site. A tool like Sharegate is good for this type of stuff.

Work Item Query Policy to check workitems match on merge

With our TFS 2015 source control we require developers to check-in changes against work items.
However, we've had a couple of instances where a developer has checked in against one work item within our development branch, but then when merging to our QA branch they've checked in the merged changes to a different work item. An example of this is where a bug has been created underneath a PBI, the changes in dev have been checked in against a task under the bug, but then merged to QA against the PBI itself. This causes us issues with traceability.
I've seen that it's possible to add a check-in policy of "Work Item Query Policy". I'm just wondering if there is a way to write a query that will determine if the work item of a check-in after a merge matches the work item of the source changesets? I'm not necessarily after the exact query (though it would be lovely if someone could provide one :) ), really I'm just wondering whether it's possible or not to have a query to do this - i.e. is the information available to queries in TFS?
You can't do this with the existing policies, you'd need to build a custom policy.
So, technically this is possible. You can access the VersionControlServer object through the PendingChanges object:
this.PendingCheckin.PendingChanges.Workspace.VersionControlServer
You can use that to query the history of the branch in question and grab the work items associated to the check-ins in that branch.
You can check the associated workitems to the current workitem:
this.PendingCheckin.WorkItems
You could probably even provide the option to auto-correct by adding the correct work items to the checkin upon validation.
One of my policies provides an example on using the VersionControlServer from a policy.

How to Identify Overlapping Resources in Multiple Projects - Microsoft Office

My questions is as follows:
Is there a way to make a master project plan incorporating multiple projects (not necessarily sub projects) in Microsoft office. As our resources get pushed around due to parts and items not arriving and shipping dates being moved forward amongst other things etc, sometimes the resource plan has to be changed regularly. I want to be able to pull all current projects into a master project plan so that I can identify where project resources are overlapping. Not necessarily by task but more by employee.
To try and explain a bit better:
Project 1:
Project Manager: John
Project Engineer: Jack. Task - Drawing
John assigns Jack to work on a task in Project 1.
Project 2:
Project Manager: Mark
Project Engineer: Jack. Task - Documentation
Jack wasn't supposed to be working on Project 2 for a further 2 weeks but the deadline has been moved forward and Mark has also assigned Jack to work on a task on his project.
I'd like to create a master project where I can pull in Project 1 and Project 2 and find a way for it to identify the resource overlap, regardless of the fact that Jack has been assigned to 2 different tasks, but more because he as an employee has been assigned to two projects at once.
Is this possible?
On a larger scale realistically I'll need this to incorporate about 6 Projects and about 20 staff members across, so I can find all the overlaps.
I am aware that there is a way to split a person between 2 tasks by assigning a percentage that they will work on both, i.e 90% on task 1 and 10% on task 2 but obviously this won't be project exclusive and my aim is to identify the overlaps rather than create them on purpose for resource sharing.
You are basically looking for software to support your "resource leveling" process.
The ]project-open[ open-source PPM software is capable of importing MS-Project schedules. After the import, you can get Resource Management reports from the system that allow you to perform manual resource leveling.
Another interesting open-source tool is TaskJuggler. TJ actually does multi-project scheduling or automatic resource leveling. However, TJ does not include a MS-Project integration at the moment AFAIK.
Affiliation note: I'm a member of the ]project-open[ team.
Depending on how you want to approach this, you can have a single master project and make all of your other project files sub projects in that master file. You can work in this master file and it will save your updates to the other files. It is sort of like having Project server on your desktop. You can create veiws for each project, or simply roll them up and they show as a single summary task.
You can do this by using a shared resource file but the best way now would be to just get a Project Online subscription and do your projects there.

Sharepoint Workflow w/ Multiple Approvals

I am trying to create a workflow in sharepoint that has multiple approvals.
So there is conditonal logic that says if Person A accepts the proposal continue on to Person B approval if person B approves move on to Person C etc etc.
I have my logic for how the workflow should run but I am running into problems with SharePoint Designer 2010. Apparently each approval process that you add to a workflow adds something like 1100 nodes of complexity. The sharepoint default setting is set to I think 5000 nodes. My workflow has 12 approval processes so it will not publish. I have run some powershell scripts that are supposed to increase the complexity of workflows sharepoint allows but its still not working.
Is there a way to do this without so many approval processes and I don't really want to do a custom process but if that's my only option I might have to.
I ran into the same problem while developing a workflow. The only solution I came up with is to wait for the approval status to equal 'approved' and then set a column in your list to give an indication that it is completed. i.e. a column named first_approval_complete.
when your first approval reaches the 'approved' status, set that column to equal 'YES'
Then have another workflow that is set to 'run on item change' that begins with an if statement that checks if first_approval_complete is equal to 'YES'.
A little bulky, and makes each workflow a tad slower, but you can have an infinite number of approvals if they are all serial.

Team Foundation Server 2010 - Activity Reports

We are rolling out a global instance of TFS 2010 in our organisation which will be used both internally and externally (vendors). I'd like to be able to get some reports of the daily activity across all the Team Project Collections and Team Projects for things like:
Total number of Team Projects
Total number of Checkins/changesets per day/month/etc
Total number of bugs/issues logged per day/month/etc
Total number of bugs/issues resolved per day/month/etc
Datbase sizes for Team Project Collections
This information will be incrediably useful to help understand what the uptake and usage is like. It will also help to plan when/how we are going to need to scale our environment.
What's the best way to acheive this? Building my own custom reports in SSRS? Creating custom web parts for our integrated SharePoint environment? Or, are there any products out there that can help?