I have a fragment(button) that calls a rest endpoint, this works great and is pretty simple. The Rest Endpoint queries data and returns the result which updates the issue. This works great, for certain conditions we want to setup a listener to automatically initiate the logic defined in the rest endpoint, struggling with how to reference this.
Within a listener is it possible to call an already defined rest endpoint script instead of re-doing it? What format is it expecting to pass a string parameter such as an issue key?
This seems like it should be an easy reference I'm missing, perhaps it's not possible to reference the endpoints from the listeners? Thanks
@BaseScript CustomEndpointDelegate delegate
doSomething(issue.key)
The above will error and adding {} after it will create a child reference within the existing script and also update the permission of the endpoint to anonymous.
com.atlassian.jira.event.issue.IssueEvent, file: null
groovy.lang.MissingMethodException: No signature of method