Hi,
I have sub tasks set up as approval tasks, if some is the transition the sub task to rejected status I want to update all the other sub-task status to cancelled.
I'm still very new to SIL Scripting and JIRA in general.
Currently using cloud JIRA
I have searched CPrime documentation and Atlassion community and can't see anything that is using something simiilar
Current code is bring back incompatible array error. Any help much appreciated
//get all subtasks
string s_tasks=subtasks(key);
for(string s in s_tasks){
//if subtask not rejected and not in resolution not done
if (%s%.status != "Rejected" || %s%.resolution != "Done")
return;
for(string s in subtasks(key)) {
%s%.status = "Cancelled";
}
}
}