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

Fast-track transition fails on IssueLinkCreatedEvent; issue is null

    Details

    • Type: Bug
    • Status: Done
    • Priority: Medium
    • Resolution: Won't Fix
    • Affects Version/s: 5.2.2, 5.4.7
    • Fix Version/s: None
    • Component/s: Listeners
    • Labels:
      None
    • Critical Points:
      2.1

      Description

      When setting up a fast-track listener that listens for an IssueLinkCreatedEvent, the script will produce the following error:

      2018-10-23 12:00:48,031 http-bio-8080-exec-1 ERROR admin [onresolve.scriptrunner.runner.AbstractScriptListener] *************************************************************************************
      2018-10-23 12:00:48,031 http-bio-8080-exec-1 ERROR admin [onresolve.scriptrunner.runner.AbstractScriptListener] Script function failed on event: com.atlassian.jira.event.issue.link.IssueLinkCreatedEvent, script: com.onresolve.scriptrunner.canned.jira.workflow.postfunctions.FasttrackTransition
      Assertion failed: 
      
      assert issue // issue in doScript
      |
      null
      at com.onresolve.scriptrunner.canned.jira.workflow.postfunctions.FasttrackTransition.doScript(FasttrackTransition.groovy:111)

      This is because there is no issue within the params:

      {projects=[], events=[com.atlassian.jira.event.issue.link.IssueLinkCreatedEvent], FIELD_ACTION=2 Close Issue, FIELD_ADDITIONAL_SCRIPT=[log.debug("test"), ], canned-script=com.onresolve.scriptrunner.canned.jira.workflow.postfunctions.FasttrackTransition, FIELD_CONDITION=[], FIELD_TRANSITION_OPTIONS=[], id=3d9eedcd-f045-4210-a438-538c86e4cfe4, version=3, FIELD_FUNCTION_ID=370715d20c1b4e73b6c95fcc338fec066857f4c0, friendlyEventNames=IssueLinkCreatedEvent, name=Fast-track transition an issue, event=com.atlassian.jira.event.issue.link.IssueLinkCreatedEvent@2c4af188}

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              jyamdogo Joshua Yamdogo
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: