JQL function currentUser() does not work when used with the Group HAVING AQL clause

XMLWordPrintable

    • 11
    • Minor
    • 2

      Summary

      JQL function currentUser() does not work when used with the Group HAVING AQL clause

      Steps to Reproduce

      1. Create an object with a User type attribute and a Group type attribute
      2. Assign non-licensed users to an object
      3. Add the same user to a Jira group and assign the same group as well to the object
      4. Attempt to use the Filter scope AQL's as follow one by one:
        "Owner" = currentUser()
        AND 
        "Group" HAVING user("currentUser()")
        

      Expected Results

      In both cases when the nonlicensed user tries to browse the objects, they get the objects assigned to them via the user attribute Or the group attribute

      Actual Results

      The objects can be browsed by the user when using the user attribute in Filter scope AQL.

      "Owner" = currentUser() 

      But they can't be browsed when using the group attribute in Filter scope AQL even though the user belongs to the group assigned to the object:

       "Group" HAVING user("currentUser()")
      

      It starts to work if you now provide this user with a Jira license.

      Workaround

      Use the user type attribute if possible with cardinality set to unlimited Or if possible use the placeholders 

      "Group" HAVING user(${reporter}) 

            Assignee:
            Prahaladh Narayanan (Inactive)
            Reporter:
            Swati Kahol (Inactive)
            Votes:
            15 Vote for this issue
            Watchers:
            18 Start watching this issue

              Created:
              Updated:
              Resolved: