I have a behavior set to make a field required based on value selected on different field. There are two custom fields: Request Type (select field) and Client ID (Text). I want Client ID to be required based on the value selected in Request Type field. This is what I have so far. Seems like script is compiling but it allows me to submit a ticket without a value in Client ID.
FormField requesttypeField = getFieldByID("Request Type")
FormField clientidField = getFieldByID("Client ID")
if (requesttypefield.getValue() == "New LG Request")
How do I know if the code is executed on the submit form?
JIRA version 5.1.3
Behaviours Plugin version 0.5.2
I tried with getFieldByName("Request Type") and getFieldByName("Client ID")but client id is still not required. I also tried with by setting a condition as workflow step = Open. It did not work.
When I inserted the code and clicked on update I did not get any error. Thats what i meant by compiling.
Badges are a great way to show off community activity, whether you’re a newbie or a Champion.Learn more
This September 6-7, hundreds of Atlassian App developers will flock to Barcelona Spain to build skills, discover product roadmaps, meet face-to-face with the Atlassian team, and learn how to extend t...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG