Uploaded image for project: 'Jira Data Center'
  1. Jira Data Center
  2. JRASERVER-41352

Ability to display or hide a field based on option selected from another field

    • 57
    • 77
    • Hide
      Atlassian Update – 28 February 2018

      Hi everyone,

      Thank you for your interest in this issue.

      While this suggestion has gathered significant interest, we're unable to implement all of the excellent suggestions you make. We don't plan to work on this for the foreseeable future. This suggestion will be reviewed in about 12 months time, at which point we’ll consider whether we need to alter its status. 

      There is a workaround mentioned in the description.

      Also, there are several third party add-ons that solve many of the use cases mentioned here:

      We understand this decision will be disappointing to everyone who voted for this issue. While we believe this suggestion would improve the product, after careful review of the most pressing needs of our customers, and especially since third party add-ons are available, we've decided to prioritize other areas of the Jira Server roadmap, including:

      • Performance and stability improvements
      • Archiving projects for improved performance
      • Optimising the use of custom fields
      • Improving performance of boards
      • Improving Jira notifications
      • Allowing users to edit shared filters and dashboards
      • Mobile app for Jira Server

      We hope that you appreciate our candid and transparent communication. You can learn more about our approach to highly voted server suggestions here.

      To learn more on how your suggestions are reviewed, see our updated workflow for server feature suggestions.

      Kind regards,
      Jira Server Product Management

      Show
      Atlassian Update – 28 February 2018 Hi everyone, Thank you for your interest in this issue. While this suggestion has gathered significant interest, we're unable to implement all of the excellent suggestions you make. We don't plan to work on this for the foreseeable future. This suggestion will be reviewed in about 12 months time, at which point we’ll consider whether we need to alter its status.  There is a workaround mentioned in the description. Also, there are several third party add-ons that solve many of the use cases mentioned here: Jirassimo Intake Forms for Jira Dynamic Forms for Jira Power Custom Fields PRO - Custom Fields Live SQL Custom Fields Dynamic Forms for Cascading Select We understand this decision will be disappointing to everyone who voted for this issue. While we believe this suggestion would improve the product, after careful review of the most pressing needs of our customers, and especially since third party add-ons are available, we've decided to prioritize other areas of the Jira Server roadmap, including: Performance and stability improvements Archiving projects for improved performance Optimising the use of custom fields Improving performance of boards Improving Jira notifications Allowing users to edit shared filters and dashboards Mobile app for Jira Server We hope that you appreciate our candid and transparent communication. You can learn more about our approach to highly voted server suggestions here . To learn more on how your suggestions are reviewed, see our updated workflow for server feature suggestions . Kind regards, Jira Server Product Management
    • We collect Jira feedback from various sources, and we evaluate what we've collected when planning our product roadmap. To understand how this piece of feedback will be reviewed, see our Implementation of New Features Policy.

      NOTE: This suggestion is for JIRA Server. Using JIRA Cloud? See the corresponding suggestion.

      As a admin or user of the system I'd like to show/hide a field on a screen based upon options selected from another field. This should apply to status transition and edit screen for issues.

      Workaround

      This customization may not function as expected in all available versions of JIRA and is not covered by Atlassian's Support Offerings.
      This customization also not applicable in JIRA Cloud since the workaround contained restricted function in Cloud.

            [JRASERVER-41352] Ability to display or hide a field based on option selected from another field

            Dave Liao added a comment -

            ScriptRunner for Jira Cloud plus its companion app, Behaviors, support the ability to hide/show fields in Cloud: https://marketplace.atlassian.com/apps/1228522/behaviours-scriptrunner-for-jira-cloud?tab=overview&hosting=cloud

            Dave Liao added a comment - ScriptRunner for Jira Cloud plus its companion app, Behaviors, support the ability to hide/show fields in Cloud: https://marketplace.atlassian.com/apps/1228522/behaviours-scriptrunner-for-jira-cloud?tab=overview&hosting=cloud

            And the apps suggested do not support all type of custom fields 

            Portail HP & ASSOCIÉS added a comment - And the apps suggested do not support all type of custom fields 

            Tom Fung added a comment -

            This is a useful feature, it is a shame that Jira is refusing to implement it.

            Tom Fung added a comment - This is a useful feature, it is a shame that Jira is refusing to implement it.

            Hi,

            Its really disappointing to see that you waited for votes to be collected only to then reject what people really want?

            Also none of the workarounds really work for the cloud version.

            Can someone please suggest on how to get this working if I am using Jira cloud and want to dynamically hide/show fields on customer form using Jira service desk.

            Karishma Khanna added a comment - Hi, Its really disappointing to see that you waited for votes to be collected only to then reject what people really want? Also none of the workarounds really work for the cloud version. Can someone please suggest on how to get this working if I am using Jira cloud and want to dynamically hide/show fields on customer form using Jira service desk.

            Thomas Scheibelhofer added a comment - - edited

            Hi,

            i'd like to add that only this week I've found a proper solution for that, which we've had available all along.

            I'm now using Behaviours, which is part of ScriptRunner to show or hide 2 insight custom fields 'Cost Centers' and 'Companies' on a Service Desk request type.

            https://scriptrunner.adaptavist.com/4.3.1/jira/behaviours-overview.html

            This actually hides or shows fields while the ticket is created on the Service Desk portal, it also offers this at a later (edit) point i believe.

            import com.onresolve.jira.groovy.user.FieldBehaviours
            import groovy.transform.BaseScript@BaseScript FieldBehaviours fieldBehaviours
            
            def CostCenterFieldID = getFieldByName("Cost Centers")
            def CompanyFieldID = getFieldByName("Companies")
            
            if (getFieldById(getFieldChanged()).getValue() == "KAM-150") {CostCenterFieldID.setHidden(false)
            CostCenterFieldID.setRequired(false)
            CompanyFieldID.setHidden(false)
            CompanyFieldID.setRequired(false)
            }
            else {
            CostCenterFieldID.setHidden(true)
            CostCenterFieldID.setRequired(false)
            CompanyFieldID.setHidden(true)
            CompanyFieldID.setRequired(false)
            }
            

            Hope this can help someone

            BR

            Thomas Scheibelhofer added a comment - - edited Hi, i'd like to add that only this week I've found a proper solution for that, which we've had available all along. I'm now using Behaviours, which is part of ScriptRunner to show or hide 2 insight custom fields 'Cost Centers' and 'Companies' on a Service Desk request type. https://scriptrunner.adaptavist.com/4.3.1/jira/behaviours-overview.html This actually hides or shows fields while the ticket is created on the Service Desk portal, it also offers this at a later (edit) point i believe. import com.onresolve.jira.groovy.user.FieldBehaviours import groovy.transform.BaseScript@BaseScript FieldBehaviours fieldBehaviours def CostCenterFieldID = getFieldByName( "Cost Centers" ) def CompanyFieldID = getFieldByName( "Companies" ) if (getFieldById(getFieldChanged()).getValue() == "KAM-150" ) {CostCenterFieldID.setHidden( false ) CostCenterFieldID.setRequired( false ) CompanyFieldID.setHidden( false ) CompanyFieldID.setRequired( false ) } else { CostCenterFieldID.setHidden( true ) CostCenterFieldID.setRequired( false ) CompanyFieldID.setHidden( true ) CompanyFieldID.setRequired( false ) } Hope this can help someone BR

            Hi everyone,

            Thank you for your interest in this issue.

            While this suggestion has gathered significant interest, we're unable to implement all of the excellent suggestions you make. We don't plan to work on this for the foreseeable future. This suggestion will be reviewed in about 12 months time, at which point we’ll consider whether we need to alter its status. 

            There is a workaround mentioned in the description.

            Also, there are several third party add-ons that solve many of the use cases mentioned here:

            We understand this decision will be disappointing to everyone who voted for this issue. While we believe this suggestion would improve the product, after careful review of the most pressing needs of our customers, and especially since third party add-ons are available, we've decided to prioritize other areas of the Jira Server roadmap, including:

            • Performance and stability improvements
            • Archiving projects for improved performance
            • Optimising the use of custom fields
            • Improving performance of boards
            • Improving Jira notifications
            • Allowing users to edit shared filters and dashboards
            • Mobile app for Jira Server

            We hope that you appreciate our candid and transparent communication. You can learn more about our approach to highly voted server suggestions here.

            To learn more on how your suggestions are reviewed, see our updated workflow for server feature suggestions.

            Kind regards,
            Jira Server Product Management

            SG (Inactive) added a comment - Hi everyone, Thank you for your interest in this issue. While this suggestion has gathered significant interest, we're unable to implement all of the excellent suggestions you make. We don't plan to work on this for the foreseeable future. This suggestion will be reviewed in about 12 months time, at which point we’ll consider whether we need to alter its status.  There is a workaround mentioned in the description. Also, there are several third party add-ons that solve many of the use cases mentioned here: Jirassimo Intake Forms for Jira Dynamic Forms for Jira Power Custom Fields PRO - Custom Fields Live SQL Custom Fields Dynamic Forms for Cascading Select We understand this decision will be disappointing to everyone who voted for this issue. While we believe this suggestion would improve the product, after careful review of the most pressing needs of our customers, and especially since third party add-ons are available, we've decided to prioritize other areas of the Jira Server roadmap, including: Performance and stability improvements Archiving projects for improved performance Optimising the use of custom fields Improving performance of boards Improving Jira notifications Allowing users to edit shared filters and dashboards Mobile app for Jira Server We hope that you appreciate our candid and transparent communication. You can learn more about our approach to highly voted server suggestions here . To learn more on how your suggestions are reviewed, see our updated workflow for server feature suggestions . Kind regards, Jira Server Product Management

            We actually use one add-on (in JIRA Cloud) which provides us with the functionality to have the rules like that between the fields, Jirassimo Intake Forms for JIRA
            True that those are not native JIRA issue forms, but works for our use-cases so far

            Alex Medved {ConfiForms} added a comment - We actually use one add-on (in JIRA Cloud) which provides us with the functionality to have the rules like that between the fields,  Jirassimo Intake Forms for JIRA True that those are not native JIRA issue forms, but works for our use-cases so far

            +1 this is a good idea

            Stewart Evans added a comment - +1 this is a good idea

            There is such a lack of add-ons available for the JIRA Cloud.  I simply need to make one field required depending on the selection of another custom field.  Ex: if user selects the "request type" is a "large" effort, then force another field to be required.

            Atlassian, please add this functionality to JIRA Cloud.

            Sarah Wilkerson added a comment - There is such a lack of add-ons available for the JIRA Cloud.  I simply need to make one field required depending on the selection of another custom field.  Ex: if user selects the "request type" is a "large" effort, then force another field to be required. Atlassian, please add this functionality to JIRA Cloud.

            suman added a comment -

            I wonder why Atlassian is not rolling out this feature from 2014!!

            suman added a comment - I wonder why Atlassian is not rolling out this feature from 2014!!

              Unassigned Unassigned
              takindele Taiwo Akindele (Inactive)
              Votes:
              373 Vote for this issue
              Watchers:
              197 Start watching this issue

                Created:
                Updated: