Forums

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

ScriptRunner behaviours not honoring Required for my "select list" on my service desk

Crystal Gummo
June 1, 2018

Has anyone else run into this problem?

  • I've got a request type in a Jira Service Desk with a Project select list that I want to be optional by default (so it can receive email) but when a user is using the service desk portal, I want the Project select list to be required.
  • I set up ScriptRunner Behaviours to make the Project select list required on the service desk portal.  I know it's configured correctly because the "(optional)" note is gone from the field since I set up the Behaviour.  However, I can still submit a ticket without selecting something in the Project list (by leaving it as "none").

The only thing I can think is that Behaviours is seeing the "none" option selected in the Project select list as a viable option, instead of not one of the real options at all.

Note: "none" is not one of the options configured for the select list.  It's only showing up because we don't want to set a default value for this particular select list so Jira puts a "none" in the select list for you when the form first loads.

2 answers

2 accepted

Suggest an answer

Log in or Sign up to answer
1 vote
Answer accepted
Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
May 5, 2022

Behaviours does not yet work on Cloud, due to constraints on the platform, not Adaptavist coding!  We're working with Atlassian to get it supported though.

For now, you will have to look at alternatives - validators to check input and return people to the data screen with a warning about what they've done wrong, or seeing if you can automate the action that the Behaviour is trying to get out of the user.

Heather Ronnebeck
Community Champion
May 6, 2022

I will explore this to see what I can do. It isn't mission critical if I can't get it to work, but it is a nice to have for the team. 

0 votes
Answer accepted
Fabian Lim
Community Champion
May 5, 2022

Hi @Heather Ronnebeck

We had the same issure and had to use another plugin.

You can try jmwe event based actions. You can customize a validator that checks that fields are not empty based on separate conditions. Try the plugin and contact their support team. They are very good at getting back.

Regards

Heather Ronnebeck
Community Champion
May 6, 2022

I'll take a look at the plugin. I might be able to install it if the cost is right.

Heather Ronnebeck
Community Champion
May 6, 2022

This might work. I can't install it because of the cost, but thank you for the suggestion.

TAGS
AUG Leaders

Atlassian Community Events