The Exalate team will be on holiday for the coming days - returning Jan 4
Enjoy & stay safe

The parents task and subtask are using different workflows.

 
2
1
0

Hi,


I use the workflow of parents task and subtask differently.
The parents task has different sync values, and the subtask has the same sync values. How can I configure this?

I used the code below, but only the code of Parents Task works.


// Parents Task
if(replica.parentid == null) {
if(replica.status.name == "To Do"){
issue.setStatus("Open")
}
if(replica.status.name == "In Progress"){
issue.setStatus("Work In Progress")
}
if(replica.status.name == "In Review"){
issue.setStatus("Work In Progress")
}
if(replica.status.name == "Done"){
issue.setStatus("Done")
}
}

// Sub Task
if(replica.parentid != null) {
if(replica.status.name == "To Do"){
issue.setStatus("Open")
}
if(replica.status.name == "Work In Progress"){
issue.setStatus("Work In Progress")
}
if(replica.status.name == "In Review"){
issue.setStatus("In Review")
}
if(replica.status.name == "Done"){
issue.setStatus("Done")
}
}


Also, I am configuring in an on-premise local environment.


Regards,

  1. Serhiy Onyshchenko

    Hello, smpark, might I ask you to try changing all references of replica.parentid  to be replica.parentId  instead ?
    Let me know, how it goes.

CommentAdd your comment...