I want to hide 5 fields based on the issue type when creating a ticket. If I select Epic issue type, all 5 fields will be visible, but if I select other issue types (story, bug, and task), all 5 fields will be hidden. I have used a scriptrunner (Behaviour), but it seems there something missing/wrong. What could be the problem?
The 5 fields: Staff ID, Last Day in the Office, VF departments, Staff Name, Line Manager.
The script I have used:
@Yousuf Al Rawahi you can use screens to define what appears on different issue types and for actions like creating or editing.
Take a look at Defining a screen
I think I have the solution, I have changed from
if(issuetypeField.getValue().value == 'Story'){
to
if(issuetypeField.getValue().name == 'Story'){
Thanks.
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.