Uploaded image for project: 'Elements Connect'
  1. Elements Connect
  2. CO-3471

Can't set a Connect field as "required" with Behaviours (Scriptrunner)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Done
    • Affects Version/s: 5.13.13
    • Fix Version/s: 6.1.2
    • Environment:

      ScriptRunner

      • 5.4.45
      • 5.6.1.1

      Jira

      • 7.13.0
      • 8.1

      Jira Service Desk

      • 3.16.0
      • 4.1.0
    • Functional components:
      3rd party - ScriptRunner

      Description

      How to reproduce

      • Configure a Connect field
      • Configure ScriptRunner Behaviour to mark the Connect field as required
      def summary = getFieldById("summary")
      def connect = getFieldById("customfield_10009")
      
      if(summary.getValue() == "test") {
          connect.setRequired(true)
      } else {
          connect.setRequired(false)
      }
      
      • Create an issue
      • Make the Connect field mandatory, leave it empty
      • Create the issue

      Current

      The issue is created

      Expected

      The issue is not created, an error message is displayed below the Connect field to inform the user that this field is required

      Note

      Shall work on:

      • classic Jira
      • Jira Service Desk

      see https://youtu.be/k8QtW0GNo98 ("Live Text" is a connect field)

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              christophe.prome@valiantys.com Christophe Promé
              Votes:
              7 Vote for this issue
              Watchers:
              13 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: