CA Service Management

  • 1.  Additional Search arguments on dates

    Posted Jul 27, 2018 08:04 AM

    I'm trying to search requests using the "Additional Search Arguments" option.  My arguments below work great, but I want to replace the last_mod_dt with a real date.  I feel like this can be done, but can't get the syntax right.

     

    (act_log.analyst.last_name in ('dunn','berry') AND act_log.last_mod_dt >= 1527825600 AND act_log.last_mod_dt <= 1530417599)

     

    Can I use something like this?

    (PdmString (act_log.last_mod_dt) >= '2018-06-01')



  • 2.  Re: Additional Search arguments on dates
    Best Answer

    Broadcom Employee
    Posted Jul 30, 2018 12:15 PM

    Hi Laura,

     

    Unfortunately I don't believe this is possible as noted the last_mod_date is stored in epoch format, which is not just date, but date/time.

     

    Even if you added HH-MM-SS to the search argument it's still not able to convert that to epoch time.

     

    For scoreboard queries it is possible to use time spans such as "TODAY" as noted below:

    How can I use date/time criteria in scoreboard que - CA Knowledge 

     

    I ran some tests using this with search arguments, but unfortunately still received a bad where clause.

     

     

    Thanks,

    Scott



  • 3.  Re: Additional Search arguments on dates

    Broadcom Employee
    Posted Aug 02, 2018 04:04 PM

    laura.white 

    Do you have any additional questions on this topic?

     

    If not, please mark the answer provided byjohsc03 as correct so this thread can be closed.



  • 4.  Re: Additional Search arguments on dates

    Broadcom Employee
    Posted Aug 02, 2018 04:14 PM

    Laura, I think it worth submitting an idea so CA Dev may consider adding some functionalities that end users don't have to search using epoch time...I don't think every end user knows what it is and how to convert. Thanks _Chi



  • 5.  Re: Additional Search arguments on dates

    Posted Aug 12, 2018 11:05 AM

    Thank you Josh!