Hi is there any way to get the information of the current event. Like I would Like to know what kind of event is happening. Ex: Issue created, Issue commented etc.
I would like to access this information so that I could send a custom message to a third party app
Where?
I mean, where are you wanting to "get" the event?
I can probably answer this without knowing though. Events are intended to be a stream of notifications that things are happening in Jira. They're announcements for things to read if they want.
The way to read the list is with "listeners" - they (selectively) read the events and run code to do what they are intended to do.
In the code for a Scriptrunner listener, you literally have the event in the context, so you can use it directly without any need to do any selection or reading. For example:
def issueEventHappenedTo = event.issue
I know about this "def issueEventHappenedTo = event.issue" but what i'm trying here is to send what event is happening as a message to a third party app. Lets's say some one is commenting on the issue. I would like to send a message saying that the issue have been commented
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes, you said that already, but you have clarified enough for me to be able to add to my answer.
The best/easiest way to do this would be with a listener. Look to scripted listeners, as you'll be able to write code in one of them that pokes remote systems. There's some examples over at https://library.adaptavist.com/search?term=listener
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.