Hi,
I have a "Biz Design" transition from Requirement state --> Biz Design and
Tech design --> Biz design

I am using Create A Linked Issue (JSU) to create issues during the Biz design transition. I need to create issue if the transition is coming from Requirement state --> Biz Design
How I can have pre-condition. Here I tried with below code but it is not looking the previous condition. linked issues creating all the times.
def PrevStatus = changeHistoryManager.getChangeItemsForField(issue, "status").getAt(changeHistoryManager.getChangeItemsForField(issue,"status").size() - 1).getFromString()
def TureORFalse = true
if( PrevStatus == "Requirements" && issue.getStatus().getName() == "Biz Design"){
issLinkManagerobj.getOutwardLinks(issue.id).each{ fooLink ->
def fooIssue = fooLink.getDestinationObject()
if(fooIssue.summary == "Project Construction Approval"){
TureORFalse = false
}else{
TureORFalse = true
}
}
}else{
TureORFalse = false
}
return TureORFalse
Here is my post function configuration. Where I am doing mistake?
