I have Single Select Custom Fields name ticket Type that have 5 options
I'm trying this scenario
Request Type 1 in ticket Type I only need to show the 2 options
Request Type 1 in ticket Type I only need to show the 4 options
Request Type 1 in ticket Type I only need to show the 3 options
how can I achieve this? is there if statement to do it? or the only option is to create different custom field per Request Type?
Let me assume you have 3 different request types instead of 3 times Request Type 1?
A lot depends on how your request types are linked to issue types in your project. A request type - in itself - can't really help you here. But if your request types are connected to 3 different issue types (e.g. an incident, a service request and a change request), you can configure your custom field with 3 different custom field contexts, each one containing the correct set of options for each issue type defining that context. That would give you the described situation with a single custom field.
Hope this helps!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You might need to create separate custom fields for each Request Type.
Edited: If you have the Scriptrunner plugin then you can use the behavior script in the workflow validator.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.