Hello,
I would like to know if there is a way to limit the options users can choose in specific Form request types.
Specifically; I would like users filling out Form A to have options [1,2,3] for the Component/s field and have users filling out Form B to have options [3,4,5] for that same field.
I am looking into the Behaviors plugin from Adaptavist now, but I am not very familiar with it/groovy
I asked for help from a Java Dev over the weekend, and found a solution. It isnt the cleanest solution, but it it ensures that the correct components are selected
In the workflow Create transition I added the following Validator;
def myList = ["Apple", "Banana", "Orange"]
if (issue.labels.any{it.label=='ThisLabelisAHiddenFieldonForm'}) {
for (pc in issue.getComponents()) {
if (myList.contains(pc.name)) {
return true
}
}
}
return false
A native way to do it would be to split into two projects and use field contexts. I’m sure others can better help you with the Behaviors route.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.