Hi Everyone,
I have two behavior script which works fine. Now I want to access the value stored in one script to another. I tried accessing the value in behavior script initializer but I am getting null value.
Behavior script :
import com.onresolve.jira.groovy.user.FieldBehaviours
import groovy.transform.BaseScript
import com.onresolve.jira.groovy.user.FieldBehaviours
import com.onresolve.jira.groovy.user.FormField
@BaseScript FieldBehaviours fieldBehaviours
def A = getFieldById("customfield_16355")
Object A_val = A.getFormValue() as int
def A_Hours = getFieldById("customfield_16365")
Object A_Hour = 125*A_val
A_Hours .setFormValue(A_Hour )
Now when I tried to get value of field which is set by using A_Hours .setFormValue(A_Hour ) in the other behavior script OR in the initializer console of behavior script but I am getting null value.
Could you please help me on this.
Thanks,
Suchit