However, I noticed it flicks to 0 then the number I need.
I need something like this - <!--condition match=" $result.count$ != 0"--> but there is also a case where I need it to be 0. So how can I get it to display the number only when the job is 100% done. I have tried done, finalised but they all display the 0 at the wrong time and then it changes to the correct number.
i have also tried to add in <condition match=" $job.resultCount$ == 1"> but I still get the 0 and then the number I need
<!-- FInd out how many process are being monitored -->
<query>| stats count </query>
I have unset token Token_no_of_Process whenever there is a change in Time Picker. Due to this, the value of the token would be set every time, as the base search will be executed due to a change in the token.
Also, if you calculate value when by appending | stats count then even if the output is zero job.resultCount will have value 1 (because one result with value zero is returned). Hence it would be preferable to calculate in the base search query.