The best way to do it is use Behaviours functions in the Script Runner add-on. If you don't do it that way, then you're in to hacking your own javascript, which is a nightmare to make work in all places and maintain during upgrades.
@Nic Brough -Adaptavist-I am trying to achieve this same thing, but we are on Jira Cloud which I've read doesn't support this. Can you suggest another way of achieving this?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
There is no way to do it on Cloud, that I know of. It doesn't support the addition of the code you would need.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Neethu Jose
You can use Behavior in Jira Data Center and Server and apply the below code on the server side.
Step 1. Add Field based on which you want to Hide another field. Here I added the "Base Location" field, it's a single select field
Step 2. Add below code in server side script
Step 3. Save
def selectlist = getFieldByName("Base Location")
def OtherBL = getFieldByName("If Other, Base Location")
def selectValue = selectlist.getValue()
if (selectValue == 'Other')
{
OtherBL.setHidden(false)
}
else
{
OtherBL.setHidden(true)
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello - I'm assuming that we can't use Dynamic Forms on cloud version?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
On marketplace there is plugin called Dynamic Forms. You can show/hide fields, customfields or even all tabs based on value in select, multiselect, checkboxes or radiobuttons. Here you can find documentation: https://intenso.atlassian.net/wiki/display/DF/Dynamic%20Forms%20Home
I hope I've helped you
Best Regards,
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.