Uploaded image for project: 'Jira Platform Cloud'
  1. Jira Platform Cloud
  2. JRACLOUD-74762

An option provided by the function 'cascadeOption' for the field does not exist

      Status Update June 14, 2024

      Hi everyone,

      This is Weronika Cabaj from the Jira Cloud Issue Search team. This bug is fixed and I confirmed the functionality to be working as expected. Let us know if you think you are still experiencing this issue.

      Sincerely,
      Weronika Cabaj

       

      Problem

      Attempting to JQL search for cascading select values results in an error like:

      An option provided by the function 'cascadeOption' for the field 'testcascadefield' does not exist.
      
      

      Steps to Reproduce

      • Have a cascading select field (i.e. testcascadefield) with at least 2 defined contexts. Let's call them ContextA and ContextBC
        • ContextA is configured for ProjectA
        • ContextB is configured for 2 projects: ProjectB and ProjectC
      • Now configure the value options of ContextA and ContextB to have overlap
        • For example, let's say both allows for selecting the value "foobar"
      • Ensure that your account does not have "Browse" permissions to ProjectB and ProjectC
        • This is the key trigger of the bug
      • Now running the JQL:
        testcascadefield in cascadeOption("foobar")
        
        
      • We get the error:
        An option provided by the function 'cascadeOption' for the field 'testcascadefield' does not exist.
        
      • Now, if we grant the user account to either "Browse" permissions to either ProjectB or ProjectC, the error does not occur.

      So the problem occurs on 2 conditions:

      1. if there is a context containing no projects that the user account can see
        • As long as there's at least 1 project in the context viewable to the user, then the error does not occur.
      2. if there is a option in the context that is the same value as another context

      Expected Behaviour

      If an user does not have access to projects defined within a field's context, this should not affect the results for contexts that the user does have proper access to

      Actual Behaviour

      No issues are returned and the user is instead presented with an error

      Workaround

      1. Avoid using the function. "cascadeOption". So from the above example, use this instead:
        testcascadefield in ("foobar")
        
      1. Or check each context to ensure that the user has full access to at least one of the contexts listed
      2. Or avoid having multiple contexts with the same option values

          Form Name

            [JRACLOUD-74762] An option provided by the function 'cascadeOption' for the field does not exist

            Hi everyone,

            This is Weronika Cabaj from the Jira Cloud Issue Search team. This bug is fixed and I confirmed the functionality to be working as expected. Let us know if you think you are still experiencing this issue.

            Sincerely,
            Weronika Cabaj

            Weronika Cabaj added a comment - Hi everyone, This is Weronika Cabaj from the Jira Cloud Issue Search team. This bug is fixed and I confirmed the functionality to be working as expected. Let us know if you think you are still experiencing this issue. Sincerely, Weronika Cabaj

            cgorman added a comment -

            This bug either needs to be fixed or the work arounds need to be applied to the widgets on the dashboard. Specifically the pie chart auto generates the jql using cascadeOption thus when agents in my tenant use their dashboards to drill down to the specific item, they get an error.

            cgorman added a comment - This bug either needs to be fixed or the work arounds need to be applied to the widgets on the dashboard. Specifically the pie chart auto generates the jql using cascadeOption thus when agents in my tenant use their dashboards to drill down to the specific item, they get an error.

            Megha added a comment -
            Atlassian Update - July 9, 2021

            Hi everyone,

            Thank you for previously raising this bug and bringing it to our attention.

            Within our company roadmap and work capacity, we try to address or review each bug request but admit that not each one will be resolved. To continue the culture of being honest and open, we are closing this bug to focus on our upcoming roadmap for all Jira users.

            As we continue to roll out features we do look at requests made by our users and if you feel like this bug is still impacting your team please let us know.

            Thank you again for providing valuable feedback to our team!
            Jira Cloud team

            Megha added a comment - Atlassian Update - July 9, 2021 Hi everyone, Thank you for previously raising this bug and bringing it to our attention. Within our company roadmap and work capacity, we try to address or review each bug request but admit that not each one will be resolved. To continue the culture of being honest and open, we are closing this bug to focus on our upcoming roadmap for all Jira users. As we continue to roll out features we do look at requests made by our users and if you feel like this bug is still impacting your team please let us know. Thank you again for providing valuable feedback to our team! Jira Cloud team

              5fa389cb2e82 Tomasz Ciesla
              mkeshet@atlassian.com Michal Keshet
              Affected customers:
              3 This affects my team
              Watchers:
              16 Start watching this issue

                Created:
                Updated:
                Resolved: