Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Getting the current event

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

1 answer

0 votes


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

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

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Jira

⏰ Day in the life of a Jira Admin!

Hello Community! We thoroughly enjoyed this just-for-fun conversation in the Jira Admin Group about what it's like to be a Jira Admin. For #JiraJuly, our talented designers created these graphics t...

756 views 2 21
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you