Forums

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

How do I trigger an issue only once?

Hernan Mathias Farina Forster
Contributor
November 7, 2025

So I have an bug/task in Jira that contains a both a "comment" field and a "status" field that are sent to a database where I store the information. The problem is that when I resolve an issue (let's say to "Resolve ") and thus updating the Status field and adding a comment to it both the "Issue Resolved" and "Issue Commented" events fire one after the other, causing duplication in the database because the updating file (Groovy) is ran twice, once for each event.

I want that when I resolve an issue, the file gets fired only once when I resolve an issue instead of mulitple times. I would need like a blocker or like an event that takes the Resolve issue as a whole in one event.

Thank you!

 

This is the listenerScreenshot 2025-11-07 135327_at.png

1 answer

0 votes
Anthony Morais
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 7, 2025

Hi, @Hernan Mathias Farina Forster 

Try this:

issue.changelogs != null &&
issue.changelogs.some(log =>
log.items.some(i => i.field == "status" && i.toString == "Resolved")
)

SCR-20251107-oisn.png
Please let me know if it worked.


Suggest an answer

Log in or Sign up to answer