Active Discovery Sorting
Summary: Mike . is seeking assistance with sorting instance values in Active Discovery. They have tried various methods to arrange jobs and associated job IDs numerically but have not yet achieved success. The author has experimented with different formatting variations for the instanceId, such as combining JobID and StepID, but still faces challenges. They are asking for ideas or solutions to effectively sort them.
What's the trick to sorting with Active Discovery? I have the following instance values and I am trying to sort them numerically. I've tried playing with this different ways but no luck.
I have multiple jobs with associated job ID's and I'd like to have them sorted numerically.
Tried different variations and no luck. Any ideas?
def instanceId = "${row.JobID}0000${row.StepID}"
def instanceId = "${row.StepID}.${row.Job}"
def instanceId = "${row.JobID}${row.StepID}"
def instanceId = "${row.JobID}_${row.StepID}"
println "${instanceId}##${displayName}
