Please suggest conditions for Milestone to move from one stage to another stage

Certified Senior Developer

Hi all,

strucked here, kindly suggest conditions to move from one stage to another stage by using "if' condition sinked with constant(status).

Please find the conditions i gave for this, but only working for first status...Kindly modify or tell my mistakes.

Thanks in advance waiting for the solution.

local!currentMilestoneStampStep: if(
or(
rule!APN_isBlank(ri!caseId),
local!caseDetails.caseStatus = cons!CASE_STATUS[1],
local!caseDetails.caseStatus = cons!CASE_STATUS[3],
2,

),
1,
if(
local!caseDetails.caseStatus = cons!CASE_STATUS[2],
2,
if(
local!caseDetails.caseStatus = cons!CASE_STATUS[4],
3

),
2,
if(
local!caseDetails.caseStatus = cons!CASE_STATUS[5],
4

)
)
),

  Discussion posts and replies are publicly visible