Post a job search request and specify to return "currentStep" in fields
https://{{env.hostname}}/workflowmanager/workflow/{{env.workflowitemid}}/jobs/search?token={{env.token}}
{
"num": 10,
"start": 0,
"q": "1=1",
"fields": ["JobId", "JobName", "priority", "dueDate", "currentStep"]
}
Response specifies that "currentStep" is a string but its value is actually an array.
{
"q": "1=1",
"fields": [
{
"name": "JobId",
"fieldType": "String"
},
{
"name": "JobName",
"fieldType": "String"
},
{
"name": "priority",
"fieldType": "String"
},
{
"name": "dueDate",
"fieldType": "DateTime"
},
{
"name": "currentStep",
"fieldType": "String"
}
],
"results": [
[
"gM5_BuxmS6yKneDz4hNGew",
"JOB_1",
"Low",
"2022-12-23T10:30:57Z",
[
"tempName"
]
],
[
"avDKQmdgSGSlxC79hZju_A",
"JOB_2",
"Low",
"2022-12-23T10:31:01Z",
[
"tempName"
]
]
],
"start": 0,
"nextStart": -1,
"num": 2
}
I attempted to modify the request to include "currentSteps" (plural) which is an actual property of a `job` but the API errored with "field does not exist".