It's all about the answers!

Ask a question

Associating team to a category


Dumitrescu Malina (111) | asked Mar 14 '22, 8:50 a.m.

 Hello,

I want to associate a team to a category. I used this code to do this.

        WorkItemClient workItemClient = (WorkItemClient) teamRepository.getClientLibrary(IWorkItemClient.class);
        Category workingCopyCategory=(Category) category.getWorkingCopy();
        workingCopyCategory.doSetDefaultTeamArea(teamArea);
        return workItemClient.saveCategory(workingCopyCategory,MONITOR);
    

The problem is, in the Jazz WEB UI, when you associate a team to a category and if that category has children, the team that you set is inherited for all the sub-categories, which is not happening when I use the code above, the team is set only for the category I give as parameter. Do you have any idea why is this happening and how to obtain the same behavior as in the Wen UI?
Thank you!

Be the first one to answer this question!


Register or to post your answer.