cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Visit the PTCooler (the community lounge) to get to know your fellow community members and check out some of Dale's Friday Humor posts! X

How to add date fileter in "im timeentries.. command

akadam-2
3-Visitor

How to add date fileter in "im timeentries.. command

Hi,

I want to create the command which will give the time entries between two given dates or Time entries of given date.

I tried executing command as bellow but it doesn't work. getting an error as "Invalid option: entryDate"

>im timeentries --entryUser=<Username> --entryDate="21 Aug, 2014"

...........................................

im: MKS124819: Invalid option: "entryDate"

Usage: im timeentries options...; options are:

        --entryUser=user  A user used to select time entries

        --fields=field1[:width1],field2[:width2]... where fieldn can be any of:

createdBy,createdDate,duration,entryDate,issue,modifiedBy,modifiedDate,notes,sou

rceDisplayName,sourceName,user  The fields to display.....

Please help me with this.

2 REPLIES 2

Hi Adhik,

If you run 'im timeentries --usage' you can see all available options for the command. In that list of options is --filter which can be used for entrydate.

im timeentries --filter=entrydate:<date>

KaelLizak
14-Alexandrite
(To:JoeBartlett)

Hello Adhik Kadam,

I agree with Joe.  If you are having difficulty with his suggestion, please let us know.  If it solves your problem, please click on the Correct Answer button at the bottom of his response.

Thanks,
Kael


Kind Regards,
Kael Lizak

Senior Technical Support Engineer
PTC Integrity Lifecycle Manager
Top Tags