Hi everyone, I am new in Scriptrunner and I will love your help.
I have an issue type A, and on the view screen there is a button to create issue type B. Issue type B is a child of issue type A. When creating issue type B, there is a select list field to fill.
What I need to do is: When the button to create issue B is clicked, and value is selected from the list, check in parent A if there is a child B with the selected value. If so, don’t allow to create this issue B, and an alert will pop up
I thought to create a behavior script, but I’m stuck on how to even get started. How to get the parent ID? How to know when the button is clicked, and value is selected?
Thank you for your time and help!
Aviv