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

Behaviour edit endpoint - validation if either script or scriptPath exists in payload

    Details

    • Type: Task
    • Status: To Do
    • Priority: Low
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
    • Critical Points:
      0

      Description

      The endpoint rest/scriptrunner/behaviours/latest/admin/behaviour should validate the payload it gets on POST request.

      It should check if init property exist, then if validatorScript.script or validatorScript.scriptPath
      exists (has value different than null, '', etc.). If both of those values are missing, BE should throw an error.

      Possibly would be worth to write an upgrade task for existing behaviours that have empty initialiser functions.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              msiewruk Mariusz Siewruk [X] (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated: