Copy the personal queries from a contributor by API
Hello,
How could I copy the personal queries from a contributor to another by API? I have obtained the list of contributor's queries (list of IQueryDescriptor), but I dont know how to change the associated contributor in the IQueryDescriptor. This is the code to obtain de list of IQueryDescriptor: IQueryClient serviceQuery = (IQueryClient)repo.getClientLibrary(IQueryClient.class); List <IQueryDescriptor> listQueries = serviceQuery(findPersonalQueries(areaAux.getProjectArea() , contAux, null, IQueryDescriptor.FULL_PROFILE, new NullProgressMonitor()); Thank you very much Best Regards |
One answer
How could I copy the personal queries from a contributor to another by You can use com.ibm.team.workitem.client.query.IQueryDescriptorWorkingCopyManager to get a working copy of the query, change the owner and save the query. Changing the owner: com.ibm.team.workitem.common.internal.query.QueryDescriptor.setCreator(IContributorHandle) -- Regards, Patrick Jazz Work Item Team |
Your answer
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.