Show used processes

From SMTX Wiki
Revision as of 11:51, 12 January 2018 by Smtxwiki (talk | contribs)
(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