Uploaded image for project: 'SR for Jira - Development'
  1. SR for Jira - Development
  2. SRJIRA-4623

The Database Picker field is unable to set the field's value using setFormValue on Jira Service Desk

    Details

    • Type: Bug
    • Status: Done (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 6.6.0
    • Fix Version/s: 6.12.0
    • Component/s: Behaviours
    • Labels:
      None
    • Sprint:
      SR4J Sprint 87
    • Critical Points:
      3.9

      Description

      Steps to Reproduce

      Test 1

      1. Add a Database Picker field to your project
      2. Configure the SQL Queries for the Database Picker field and save it. The image below displays an example Database Picker configuration:-
      3. Next, create a new Behaviour for the Service Desk. Use the Initialiser to set the Behaviour.
        Below is the sample behaviour code:-
        def apps = getFieldById("customfield_11701")
        apps.setDescription("Testing 123")
        apps.setFormValue(["Design"])
        

        And below is a print screen of the sample behaviour configuration:-

      4. Next, go to the Service Desk and try to create a ticket.

      Test 2

      1. Add a Database Picker field to your project
      2. Configure the SQL Queries for the Database Picker field and save it. The image below displays an example Database Picker configuration:-
      3. Next, create a new Behaviour for the Service Desk. Use the Initialiser to set the Behaviour.
        Below is the sample behaviour code:-
        def apps = getFieldById("customfield_11701")
        apps.setDescription("Testing 123")
        apps.setFormValue("1")
        

        And below is a print screen of the sample behaviour configuration:-

      4. Next, go to the Service Desk and try to create a ticket.

      Current Behaviour

      At the moment, the default form value configured in the Behaviour doesn't get passed to the Database Picker field.

      Below is a print screen of the web browser's console output:-

      Although the browser's console displays the default value, the Database Picker fails to do so.

      Expected Behaviour

      The Behaviour should be able to set the form value for the Database Picker field according to the Behaviour configuration.

      Additional Information

      Test video included test1.mp4

        Attachments

        1. behaviour_service_desk_config.png
          behaviour_service_desk_config.png
          99 kB
        2. db_picker_config.png
          db_picker_config.png
          150 kB
        3. image-2020-09-29-11-16-47-649.png
          image-2020-09-29-11-16-47-649.png
          13 kB
        4. image-2020-09-29-11-17-42-637.png
          image-2020-09-29-11-17-42-637.png
          23 kB
        5. image-2020-09-29-11-17-47-673.png
          image-2020-09-29-11-17-47-673.png
          23 kB
        6. image-2020-09-29-11-18-11-916.png
          image-2020-09-29-11-18-11-916.png
          8 kB
        7. image-2020-09-29-11-18-46-191.png
          image-2020-09-29-11-18-46-191.png
          28 kB
        8. screenshot.png
          screenshot.png
          109 kB
        9. test1.mp4
          1.41 MB

          Structure

            Activity

              People

              Assignee:
              jechlin Jamie Echlin
              Reporter:
              rkumar Ram Kumar Aravindakshan
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Structure Helper Panel