I am encountering an issue with a script that identifies Jira issues not commented on in the last 60 days. The JQL query used is:
Usually, the EventDispatchOption should work.
However, you can choose to include some functions to force the update event to be triggered.
Some of them include:
import com.atlassian.event.api.EventDispatcher;
import com.atlassian.jira.event.type.EventType;
EventDispatcher eventDispatcher = ComponentAccessor.getComponent(EventDispatcher.class);
eventDispatcher.dispatchEvent(new EventType("com.atlassian.jira.event.issue.updated"));
Or
indexManager.reIndex(issue);
Hello, @ravi salamani
See if this works for you:
project = "TESTE" AND issueFunction in commented("before -60d") AND status not in (Closed)
This query uses ScriptRunner's commented function, which directly checks the date of comments, ignoring the updated field.
Best Regards.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It looks like you are adding comment but not update a ticket. Please search how to update comment at the end.
I found quite old page but with some examples how to do this - https://community.atlassian.com/t5/Agile/Three-ways-to-update-an-issue-in-Jira-Java-Api/ba-p/736585
Maybe this will help.
If not, please contact with Adaptavist support.
Regards,
Seba
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.