Automate team areas creation and categories association upon RTC project creation
I have a request to have two team areas automatically created and with its corresponding categories when creating a RTC project area.
I know it is possible to create one team area by default by using the "Setup Project" server follow-up action. But what about two default team areas?
I cannot use the "Create Team Areas" action since it doesn't allow me to associate these team areas with categories.
Is there any workaround for accomplishing this request?
I am using RTC eclipse IDE on a Jazz sever v6.0.1.
thanks,
Vicky
2 answers
It uses the Project Area Initialization follow up actions available.
Comments
Thanks Ralph.
I am aware of the "Create Team Areas" follow-up action although I don't think that action allows you to associate those team areas with pre-defined categories as the "Setup Project" does. Can you confirm me if my assumption is correct?
By the way, I am not using the SAFe template but a custom one based on the "Formal Project Management Process" template.
Thanks,
Vicky
No, it only allows to create the team areas and to create the categories. I don't see a capability to map the two items. You have to manually do that or create an extension that does it for you.
@mvmtori, I don't believe there is something out of the box.
In case you are into writing your own extension, as suggested by Ralph, here's some Java code:
Category cat;
cat = (Category) myCategory;
cat = (Category) cat.getWorkingCopy();
cat.getTeamAreas().remove(0);
cat.getTeamAreas().add(myTeam);
cat.setDefaultTeamArea(myTeam);
workItemService.saveCategory(cat, monitor);
Unfortunately, it uses the internal class Category. We couldn't find any 'public' API to assign Teams to Categories, but we have been using above solution pretty successfully for v4.0.3 and v5.0.2.