Show used processes

From SMTX Wiki
Revision as of 21:44, 25 May 2020 by Smtxwiki (talk | contribs) (1 revision imported)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Use this query to get a list of IDs of processes that had a ticket started in the last 6 months:

   select distinct OriginalProcessId from processinstance where datediff(month,datestarted,getdate()) > 5

Oracle

  select distinct OriginalProcessId from processinstance where sysdate - datestarted > 180