How to serch files ChangeSet with the same name under separate parent folders in SCM
![]()
Kodac Hasubo (36●7)
| asked Apr 03 '22, 12:36 a.m.
edited Apr 03 '22, 11:38 a.m. by David Lafreniere (4.8k●7)
(I am posting a fileto SCM by EWM SDK or the Plain Java API)
There are two different folders under the same Stream and the same component.
Within the two folders, there is a file with the same name.
I want to search for the ChangeSet of "text.txt" files under the "fileA" folder.
However, the ChangeSet of "text.txt" under the "fileB" folder is also searched.
I want to specify the name of the parent folder in the search criteria.
How can I specify a parent folder name?
Below is the source code to search for changesets.
IChangeSetSearchCriteria searchCriteria = IChangeSetSearchCriteria.FACTORY.newInstance();
searchCriteria.setContext(myStream.getContextHandle());
searchCriteria.setComponent(targetComponentHandle);
if (modifierHandleInCondition != null ) {searchCriteria.setAuthor(modifierHandleInCondition); }
if (searchCondition.fileNameStr != null ) {searchCriteria.setName(searchCondition.fileNameStr); }
List<IChangeSetHandle> changeSetHandleList = wsm.findChangeSets(searchCriteria, searchItemNumberLimit, progressMonitor);
|
Accepted answer
![]()
David Lafreniere (4.8k●7)
| answered Apr 03 '22, 11:38 a.m.
FORUM MODERATOR / JAZZ DEVELOPER edited Apr 03 '22, 11:40 a.m. The IChangeSetSearchCriteria (and IChangeSetPropertiesSearchCriteria [which it also extends]) does not support additional filtering by the parent folder of a modified file.
Kodac Hasubo selected this answer as the correct answer
|
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.