Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

ScriptRunner Bahaviour error?

Andrzej Przybylski
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 9, 2022

Dear Community,

I observe a very strange error (?) of a very simple script. 

The script (ScripRunner Behaviour) gets value from custom field "MyName" - two level cascading select.

def itSo=getFieldByName("MyName")

def itSoText=itSo.getValue().toString()

Before SR version 6.58 every change of "MyName" (level 1 or level 2) made changes in itSoText value, in version 6.58 only first level changes the value and any change in level 2 does not change anything.

Is it a ScriptRunner bug, or 'bad code'?

 

1 answer

1 accepted

2 votes
Answer accepted
Ram Kumar Aravindakshan _Adaptavist_
Community Champion
September 9, 2022

Hi @Andrzej Przybylski

To answer your question, yes, this is an existing bug in ScriptRunner. 

The Bug is that it is only able to get the value from the Parent list in the Cascading Select List and the value of the Child list is not reachable.

For your reference, the Bug report number is SRJIRA-6113.

The fix for this is currently been worked on.

Thank you and Kind regards,

Ram

Andrzej Przybylski
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 12, 2022

Thank you and kind regards, Ram!

Suggest an answer

Log in or Sign up to answer