Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

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
Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Aug 22, 2022

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 ] 

Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Aug 22, 2022

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? 

Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Aug 22, 2022

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

Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Aug 23, 2022

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
AUG Leaders

Atlassian Community Events