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

Listener "Fires an event when condition is true" threw "IllegalArgumentException" with "Issue Link Events"

    XMLWordPrintableJSON

Details

    • SR4J Sprint 90
    • 0.4

    Description

      When returning true condition with built-in listener Fires an event when condition is true on event IssueLinkCreatedEvent or IssueLinkDeletedEvent will throw an IllegalArgumentException.

      Steps to Reproduce

      1. Create Fires an event when condition is true listener
      2. Select IssueLinkCreatedEvent or IssueLinkDeletedEvent * in *Events
      3. Return any true statement
      4. Select any Event (Custom/System), happens to both

      Expected Behaviour

      • Event should be fired.

      Actual Behaviour

      • Event did not fire and threw IllegalArgumentException

      Workaround

      • N/A

      Proposed Development 

      • Allow users to choose the destination or source issue if they pick link events from the list of events OR
      • Prevent them even choosing events that do not directly contain an issue object

      Additional Info

      • Stack trace below
      2020-11-13 14:07:08,514+0000 http-nio-8080-exec-5 ERROR a 847x2616x1 1tm4913 172.17.0.1 /secure/LinkJiraIssue.jspa [c.o.scriptrunner.runner.AbstractScriptListener] Script function failed on event: com.atlassian.jira.event.issue.link.IssueLinkCreatedEvent, script: com.onresolve.scriptrunner.canned.jira.workflow.postfunctions.FireEventWhen
      java.lang.IllegalArgumentException: The issue object was not available in the binding, perhaps called from an event handler with a non-issue event 

       

      Attachments

        Issue Links

          Activity

            People

              krana Kyran Rana [X] (Inactive)
              hibrahim Helmy Ibrahim
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: