Open vijaychowthri opened 5 years ago
i couldnt get the value of "stepid" & "stepname" for each phase
JsonArray processsingstage = Json.parse(output).asObject().get("data").get("processsingstage").asArray();
How to get the value of stepid for respective "stepname" ?
{ "iscore": false, "issuccess": true, "message": "RoadMap for project id P10100 retrieved successfully", "data": { "project": { "opsid": "P10100" }, "processsingstage": [ { "processingstagedetails": { "stepid": "PRC0001", "stepname": "I-PHASE", "sequencenumber": 1000, "steptype": { "name": "OPS Process Template Type - Stage", "code": "STAGE" }, "steptemplate": { "name": "AIS0010000 I-PHASE", "code": "AIS0010000" }, "stepstatus": { "name": "BPM Process Status- Not Started", "code": "PRS_STATUS_NOTSTART", "stepstatuscode": "E" }, "stepstage": { "name": "OPS Process Stage - AIS", "code": "AIS" }, "description": "", "steptemplatestatus": "Active", "ishidden": false, "ishiddenindicator": false, "isroadmap": true, "isoptional": false, "ruletrigger": 0 }, "processingsubstage": [ { "processingsubstagedetails": { "stepid": "PRC002", "stepname": "Prepare I-PHASE Package", "sequencenumber": 1100, "steptype": { "name": "OPS Process Template Type - Sub Stage", "code": "SUBSTAGE" }, "steptemplate": { "name": "AISS011000 Prepare I-PHASE Package", "code": "AISS011000" }, "parentstep": { "name": "I-PHASE", "code": "PRC0001" },
i couldnt get the value of "stepid" & "stepname" for each phase
JsonArray processsingstage = Json.parse(output).asObject().get("data").get("processsingstage").asArray();
How to get the value of stepid for respective "stepname" ?
{ "iscore": false, "issuccess": true, "message": "RoadMap for project id P10100 retrieved successfully", "data": { "project": { "opsid": "P10100" }, "processsingstage": [ { "processingstagedetails": { "stepid": "PRC0001", "stepname": "I-PHASE", "sequencenumber": 1000, "steptype": { "name": "OPS Process Template Type - Stage", "code": "STAGE" }, "steptemplate": { "name": "AIS0010000 I-PHASE", "code": "AIS0010000" }, "stepstatus": { "name": "BPM Process Status- Not Started", "code": "PRS_STATUS_NOTSTART", "stepstatuscode": "E" }, "stepstage": { "name": "OPS Process Stage - AIS", "code": "AIS" }, "description": "", "steptemplatestatus": "Active", "ishidden": false, "ishiddenindicator": false, "isroadmap": true, "isoptional": false, "ruletrigger": 0 }, "processingsubstage": [ { "processingsubstagedetails": { "stepid": "PRC002", "stepname": "Prepare I-PHASE Package", "sequencenumber": 1100, "steptype": { "name": "OPS Process Template Type - Sub Stage", "code": "SUBSTAGE" }, "steptemplate": { "name": "AISS011000 Prepare I-PHASE Package", "code": "AISS011000" }, "parentstep": { "name": "I-PHASE", "code": "PRC0001" },