I am still new in Scriptrunner.
I want to create a subtask based on "created subtask" postfunction condition.
What I want to achieve is this:
I have project X --- when an issue in project X move to status "Review" it triggers a postfunction and create issue in project Y and link it to the issue project X.
When an issue is created in project Y it also triggers a postfunction and create a subtask based on the issue type specified.
I want to set a condition in my postfunction to say:
+Only create a subtask if the issue is linked to issue in project X.
Please help I dont know how to do it.
i have tried so many things but it didnt help