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

Assets Customfield validation error in the JSM Customer's Portal - when Filter Issue scope is using ${Issue Type} or ${issuetype}

      Issue Summary

      When using the placeholder ${Issue Type} ( or ${issuetype} )in the Filter Issue Scope of an Assets customfield; if the field is being populated in the Create form, a validation error on the Assets field will block the creation of a ticket.

      This does not happen when creating an issue within Jira, or when using other placeholders.

      Steps to Reproduce

      1. Create an object type and a few objects with Name matches the Issue types used for requests in the portal (e.g. "Change", "Service Request","Hardware")
      2. Enable your schema to the JSM portal (see Schema Config>Roles)
      3. Configure an Assets CF with the following :
        Filter Scope: objectType = "My OT"
        Filter Issue Scope: Name IN (${Issue Type.name})
        // the same when using ${issuetype.name} )
      4. Leave the Filter Assign scope empty
      5. Add this field to your request types screen
      6. Access the Customer's portal and set Summary, try to select an object in the Assets field - it should only allow selecting an object matching the Issue Type you are on
      7. Try to create the ticket in the portal

      Expected Results

      the ticket will be created, with the selected value in the Assets custom field

      Actual Results

       (5.17.n) - the ticket is showing a validation error in the portal: "Please provide a valid value for field 'Assets CF'"

      ...
      

      Workaround

      Only work around at the moment is to remove the placeholder ${Issue Type} from the Filter Issue scope.
      For a single value to be selected - try using the Filter Assign Scope, or, a Postfunction to set the Assets field with the same AQL

      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 Example: 5.17.3 (Yes)
      Most Recent Bug-Fix Release    
      Previous Major Release 5.16.0 (No)
      Most Recent LTS    
      Previous Supported LTS    
      Other Versions.. 5.12.12 (No)
        5.14.0 (No)

       
       

          Form Name

            [JSDSERVER-15638] Assets Customfield validation error in the JSM Customer's Portal - when Filter Issue scope is using ${Issue Type} or ${issuetype}

            Marko Filipan made changes -
            Remote Link New: This issue links to "Page (Confluence)" [ 968600 ]
            Satej Mirpagar made changes -
            Resolution New: Fixed [ 1 ]
            Status Original: Waiting for Release [ 12075 ] New: Closed [ 6 ]
            SET Analytics Bot made changes -
            UIS New: 19
            SET Analytics Bot made changes -
            Support reference count Original: 1 New: 2
            SET Analytics Bot made changes -
            Support reference count New: 1
            Sam Xu made changes -
            Assignee New: Sam Xu [ jxu2@atlassian.com ]
            Sam Xu made changes -
            Status Original: In Progress [ 3 ] New: Waiting for Release [ 12075 ]
            Sam Xu made changes -
            Development Effort New: M [ 13032 ]
            Status Original: Needs Triage [ 10030 ] New: In Progress [ 3 ]
            Sam Xu made changes -
            Fix Version/s New: 10.2.0 [ 109023 ]
            Yinon Negev created issue -

              jxu2@atlassian.com Sam Xu
              8cdc82c96fd5 Yinon Negev
              Affected customers:
              0 This affects my team
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: