Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,367,735
Community Members
 
Community Events
168
Community Groups

What is this scriptrunner error?

I am trying to do a few if/else if statements to modify the values of escalationSubType based on the value of escalationType. Can anyone help me with this sytax error?  Screen Shot 2022-08-22 at 2.42.20 PM.png

1 answer

0 votes

We can't tell you, you've snapped a screenshot where the pop-up box is obscuring the error.

The pop up box is the error and it is for the red underlined portion

[it.optionId.toString())]: it.value ] 

Ok, now we can check what is behind it, we can point you to the } that is place in line 3 too early in the code, before the .collectentries.

Where should it go? 

I don't know, I can't work out what your code is supposed to be doing.

There are two fields, Escalation Type and Escalation Sub-Type. 

Based on the value of Escalation Type, I want only certain values in "Escalation Sub-Type" to be selectable 

Screen Shot 2022-08-23 at 8.21.02 AM.png

Ah, thank you, that's sorted out my confusion!

Have a look at https://library.adaptavist.com/entity/set-behaviour-multi-and-single-select-options-and-value - I think that does what you are looking for!

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events