It's all about the answers!

Ask a question

Looking to use scm query for finding files that have been modified in a date range. Has anyone done this?


Pankaj Sikka (112) | asked Nov 29 '16, 2:02 p.m.
 We would like to find all files within a project area or a component that have been modified with a date range. 

 I assume this is possible using 'lscm query --file" command. 
  However, I am not able to find the complete details of all the arguments of for the --file option. 
http://www.ibm.com/support/knowledgecenter/SS2L6K_6.0.2/com.ibm.team.scm.doc/topics/query.html  

One answer



permanent link
Shashikant Padur (4.2k27) | answered Nov 29 '16, 11:16 p.m.
JAZZ DEVELOPER
edited Nov 29 '16, 11:17 p.m.
I believe it supports the following:
attribute_name = attribute_value
has_attr(attribute_name)
in_baseline(baseline_uuid)
I don't think you could provide a date as the attribute because the date attribute would be for a change set and not for the file.

Another way to find out is as follows:
scm list changesets --workspace <workspace> --component <component> --created-after <date> --create-before <date>
and then list the changes in each of the change sets returned
scm list changes <changeset uuids...>
Note: The same file may be part of multiple change sets.

Take a look at the help for the above commands for more information

Your answer


Register or to post your answer.