ScriptRunner listener issue link event

I am trying to do a simple custom listener on the IssueLinkCreatedEvent and IssueLinkDeletedEvent. According to the documentation, it seems to support those events https://scriptrunner.adaptavist.com/5.1.6/jira/releases/current-release.html

However, when in my script I write

def name = event.issueLink.name

It does not work. It give me an error saying “No such property ‘issueLink’ for class com.atlassian.jira.event.issue.IssueEvent”.

I know it’s not a property of that event, but it’s not that event that I am expecting. Is there a way to do a proper ScriptRunner listener with that event?

Hi @mathieu.yargeau1,

This community is focussed on helping developers who are building out apps on top of our products.
If you want help with Scriptrunner scripts I want to point you towards this collection in the user community: https://community.atlassian.com/t5/Adaptavist/ct-p/adaptavist

It’s full of helpful people who are using Scriptrunner every day.

Cheers,
Peter

1 Like