The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
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?
We can't tell you, you've snapped a screenshot where the pop-up box is obscuring the error.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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!
Still have a question?
Get fast answers from people who know.