Uploaded image for project: 'Jira Service Management Data Center'
  1. Jira Service Management Data Center
  2. JSDSERVER-16118

when using filter Issue scope AQL, empty text customfield is breaking IQL OR statement for validation

      Issue Summary

      When using filter Issue scope AQL, empty text custom-field is breaking IQL OR statement for validation. Issue started after upgrade from 9.12 to 10.3. It works fine in older version.

      Steps to Reproduce

      1. Create two Assets CF > ContractCF and Party group and one text CF> Customer user
      2. Create an assets schema test and three Assets object-Type -> Contract, Party Group, User
      3. Contract ObjectType should have attribute referring to party group and user object.
      4. Create objects in all three object-type.
      5. Now set up the context of custom-field Party group to list down all party group objects.
      6. Set-up the context of custom-field contractCF to list down all contract objects and specify filter Issue scope as below. Here customfield_10234 is for PartyGroup and customfield_56789 is for customer user. Filter issue scope: ->

          **   "Party Group"= ${customfield_01234} OR "Customer User" in ${customfield_56789} 

      7. Add all the three CF to a test project and create issue screen. 
      8. Try to create an issue and select group object in Party group
      9. Leave the Customer user field empty
      10. Select contract object in contractCF
      11. Click on create issue.

      loom video:
      https://www.loom.com/share/4d3c7caee57d43668e7298fe91470cae?sid=ee0beb5c-35fb-4afb-a28d-c0afb55f11e0

      Expected Results

       Issue should be created without any issue

      Actual Results

      issue is not created until we give any value in the text field userCF. It displays error for contract object.

      Could not find Assets object/s (object key of selected contract object) 

      Workaround

      1. Remove the OR condition with text CF. 
      2. Give any random value like N/A and you can delete that later.

      Versions Tested

      Please confirm all versions that have been tested for this issue, and indicate whether the tested version is affected or not affected, below: 

      Testing Requirements Version Affected Version
      Customers Reported Version 10.3.3 Yes
      Most Recent Bug-Fix Release    
      Previous Major Release    
      Most Recent LTS 10.3.3 Yes
      Previous Supported LTS    
      Other Versions.. 9.12.4 No
      (Add rows as needed)    

          Form Name

            [JSDSERVER-16118] when using filter Issue scope AQL, empty text customfield is breaking IQL OR statement for validation

            SET Analytics Bot made changes -
            Support reference count New: 1
            Benjamin Suess made changes -
            Status Original: Needs Triage [ 10030 ] New: Gathering Impact [ 12072 ]
            Security Metrics Bot made changes -
            Labels New: ril
            Security Metrics Bot made changes -
            Remote Link New: This issue links to "Internal ticket (Web Link)" [ 999419 ]
            Shiwani Choudhary created issue -

              Unassigned Unassigned
              6f6f0ed1241f Shiwani Choudhary
              Affected customers:
              3 This affects my team
              Watchers:
              2 Start watching this issue

                Created:
                Updated: