Microsoft Project releationship VBA code - vba

I am doing a working semester right now, with the course of study bachelor of business computing. I am not an expert in coding (think got some OK basics) nor I am a 100% fluent in English as my 2nd language so be a bit gentle on mistakes or "bumpy" formulations.
My Task:
I am working on a template, which will be handed to the company's project managers to make it easier for them to "load up" backlogs into TFS and assign tasks via MS Project.
The template itself is kinda finished right now, but I have one more problem to tackle.
Automatizing the "Create Relationship Process" between Backlog Items and Tasks
TFS cant create "Parent-Child-Relationships" with the "Parent Backlog" not published yet.
This means, I have to find a way (thinking of a macro/VBA) to create the relationships AND to publish some items of MS Project first, then creating the relationship and publish the rest.
Macro Start --> publish all backlogs --> creating relationships --> publish relations + tasks --> Macro End
The tricky part for me is, that it has to be as simple and intuitive as possible to use.
I hope I managed to impress myself at least a little bit understandable and someone has a little help for me.
I used Google and the Stackoverflow Search, but didn't get a satisfying answer.

There is out of the box integration between TFS and both Excel and MS Project. If you install Team Explorer you will get a "Team" tab in both products.

Well it was my own bad.
I only tried to for testcases the first 5-10 Tasks/Backlogs. But for MS Project + Tfs you need to fix all "publish errors" to get the connections to work #tfs.
Greetings Declade

Related

How revert to tfs 2015 stock agile process template

After (or before) we convert from TFS 2012.2 to TFS 2015.3 (which we have done just fine in a test run) we would like to revert our team project to the standard TFS 2015 Agile process template, and no longer use the customized agile process that we had modified from TFS 2012. We are quite willing to delete all of our work items and start over, but need to keep the team project history and change sets. Anyone know how to do this? Answers to prior questions on this did not address this situation. Thanks.
There is no easy way to do it. Basically the steps require you to use a lot of witadmin commands. Start by deleting any work item types that were added and don't exist in the default template.
Then push the standard work item definition for each work item type.
Then push the categories
Then push the process configuration
Then delete any fields that are no longer used
That should bring you back to the standard template.
An alternative you could try is to use the WitMorph project. You can write a set of rules to migrate your data back into working order.

Crm2013/15 Online and queries on huge data volumes

I'm working on a couple of million records, as soon as I try to run an advanced find, and put as a criteria a linked entity, the advanced find goes in timeout.
Create custom views on this allows me to filter properly? Anyone knows the proper way of using the advanced find this way? Are there limitations on the out of the box CRM that i should be aware of?
In CRM 2013 - it is possible to add indexes for specific fields by adding the columns to the quick find view for the entity.
You will need to wait for the Indexing Management Job to run (which is run every 24 hours by default) - see http://blogs.msdn.com/b/darrenliu/archive/2014/04/02/crm-2013-maintenance-jobs.aspx.
In previous version of CRM, it was necessary to add the indexes directly to the database - this may be necessary for more complex queries.
was too early to post an answer. The problem that I encountered was related to the OOB advanced find. Looking for example for an account with some related contacts (a really plain search with a linked entity) i had a SQL timeout. Everything was OOB so I was a little bit clueless and I opened a case to Microsoft. They found a bug, if i was changing the sorting the advanced find started to work again. They are still investigating. So wasn't a setting problem but a crm bug.

Using Team Foundation Server for QA / Testing

I have been playing around with TFS (Team Foundation Server) on my visual studio 2012.
I went to Work Items and I saw My Bugs,My Tasks,My Test Cases.
All are empty at the moment. I want to know how can I set up a test case in TFS > Work Items > My Test Cases? Or Add Bugs in My Bugs.
I also read somewhere - Cant remember now - You can actually edit the my test case screen to some of your own test case criteria.
Anyone know's about this or where I can start?
These are just Queries that run over all the work items. Users with appropriate permissions can edit them, but the changes will apply to the whole team.
You can copy and paste them from Shared Queries into My Queries and work on them.
The way they work is looking for any work item assigned to the viewer of the query (using a variable called #Me in the filter) that has the Bug / Task / Test Case Work Item type and is not closed.
Here's an example of "My Tasks" from my MSF Agile Project:
When you view the results, there is button in the top right called "Edit Query" to get this view.
You can create new bugs , or other work items by clicking on the team menu. You can then create new work items and assign them to yourself or other members of your team

Noob Guidance on a Parallel Task Workflow (without Visual Studio)

This is going to be my first workflow, and I could use a little guidance.
I have a list I'm using for requests when a user needs their profile changed (eg: change of office location). The change has to be done in AD, PeopleSoft, and another database. Right now, I have it set up so requesters submit an item to a list, and Alerts go out to the different people responsible for making the updates in AD, PeopleSoft, etc. However, there has been enough frustration with missed emails and the like that I've been asked to track via workflow.
So essentially, I need to track a request that goes out to multiple users who will then need to confirm that the task has been completed. I found !(http://officeimg.vo.msecnd.net/en-us/files/989/238/ZA102615287.jpg), which is a very good representation of what I want to do, but does a very confusing job of explaining how to do it: http://office.microsoft.com/en-us/sharepoint-help/all-about-approval-workflows-HA102771433.aspx
Can someone point me to the workflow type that I need and the steps to implement? OOB/SPDesigner please, I don't have VS on my machine.
Thanks,
Scott
I will start by saying that implementing parallel tasks in a single workflow is hard.
What you can do is customise the OOB approval workflow (the one mentioned in the article) to suit your needs. This will give you an insight on how Sharepoint Workflows work and are designed.
It will look confusing at start (very confusing) since like i said is a complex workflow to setup, until you start to understand how it works.
make sure you make a copy of the approval workflow before modifying it so you can still use it if needed.

Many user using one program (.exe) that includes datasets

I created a time recording program in vb.net with a sql-server as backend. User can send there time entries into the database (i used typed datasets functionality) and send different queries to get overviews over there working time.
My plan was to put that exe in a folder in our network and let the user make a link on their desktops. Every user writes into the same table but can only see his own entries so there is no possibility that two user manipulate the same dataset.
During my research i found a warning that "write contentions between the different users" can be occur. Is that so in my case?
Has anyone experience with "many user using the same exe" and where that is using datasets and could give me an advice whether it is working or what i should do instead?
SQL Server will handle all of your multi-user DB access concerns.
Multiple users accessing the same exe from a network location can work but it's kind of a hack. Let's say you wanted to update that exe with a few bug fixes. You would have to ensure that all users close the application before you could release the update. To answer you question though, the application will be isolated to each user running it. You won't have any contention issues when it comes to CRUD operations on the database due to the network deployment.
You might consider something other than a copy/paste style publishing of your application. Visual Studio has a few simple tools you can use to publish your application to a central location using ClickOnce deployment.
http://msdn.microsoft.com/en-us/library/31kztyey(v=vs.110).aspx
My solution was to add a simple shutdown-timer in the form, which alerts users to saving their data before the program close att 4 AM.
If i need to upgrade, i just replace the .exe on the network.
Ugly and dirty, yes... but worked like a charm for the past 2 years.
good luck!