Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible to trigger a listener after 2 or 3 minutes delay when an event is fired?

Manjupriya January 17, 2021

We are integrating a problem reporting tool (PR Tool) with Jira. Issues are created in Jira for every Problem ticket created in the external system and vice versa. 

I have a listener which listens to Status changes and triggers emails when conditions in a CSV file are met. I have implemented the code till this point.

When an issue is created in Problem Reporting tool, it takes a minimum of 3 minutes to get that issues synced completely in Jira. 

For the initial Status changes  (for ex, from "Create" to "In Progress") I see that my listener  don't trigger emails since some fields are not synced and condition in CSV is not met. 

Is it possible to delay triggering the listener for few minutes or anything else that could be done to fix this issue? 

 

1 answer

0 votes
Trudy Claspill
Community Champion
January 19, 2021

Hello @Manjupriya 

I think the only way to accomplish that would be to write a Wait/Pause into the code of your script, so that it pauses directly after it starts.

Manjupriya January 26, 2021

@Trudy Claspill 

Thank you.

I tried it before, but that affects other functionalities when adding delays.

Suggest an answer

Log in or Sign up to answer