AnsweredAssumed Answered

Change default sorting on list_cr_wf.htmpl page

Question asked by blav on Oct 26, 2018
Latest reply on Nov 12, 2018 by blav

Hi all,


Been looking to change default sorting when loading list_cr_wf.htmpl page after searching for workflow tasks on Incident/Request/Problems. I would like default sorting to be : cr and then sequence, newest tickets first (Incident/Request or Problem) and then "Sequence" (from the smallest number to the highest)



Request number | Sequence

29384 | 10

29384 | 20

29288 | 10

29288 | 20

29288 | 30


And so on... now the default sorting is only on Sequence and requests numbers are shown randomly (when reloading a page it gets different order)


I tried on a separate environment changing default sorting order on "cr_wf" object itself (cr and then sequence) (everything list in the domsets tab) and then restart pdm_publish and starting again. Everything still works but no changes.

I tried also setting a sorting condition on the column itself, but not sure it works well.

<PDM_MACRO name=lsCol hdr="Seq." attr=sequence sort="sequence ASC, cr.persid desc">


Anyone tried that before?


In a request, it has to remain sorted by Sequence also as all tasks are shown in a request (4.2 tab)