Forums

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

Script Listener with JQL don´t show updated issue

Joerg Strehl
January 15, 2020

Hello,

I need some help with an problem regarding to Listener´s and JQL querys.

So I wrote an Listener which sends an custom mail to the teamleader if the issue is set to priority 1.
In the first step I get the search results from some of our saved filters and then I check if the issue is in one of these filters. Based on the filter I send the mail to the right teamleader.

This works fine until I have an issue with an approval inside the workflow, it seems that the listener is faster than the re-index of the issue in the approval transition. 
When I test the script in the console it works. 

Is there any way to slow down the listener or wait until the re-index is done?

 

Thanks

Joerg

 

1 answer

Suggest an answer

Log in or Sign up to answer
0 votes
David Fischer
Community Champion
April 11, 2023

Hi @Aaron Andrade 

you don't need to test for null values, the Fields Required Validator does that for you. Just test the issue Status in the Conditional Validation script. Also, type the status name as it appears on the "Statuses" admin page, the name is case-sensitive and the Workflow Editor shows status names in all uppercase (for some unfathomable reason).

Aaron Andrade
Contributor
April 11, 2023

I am using radio buttons and the default is none (none = null) and we are trying make it where the question has to be answered and that it is only required when the status is "IT SSO Implementation". I have tried it without the null conditional statement and it let's the ticket close without the question being answered.

David Fischer
Community Champion
April 11, 2023

Yes but the status check was incorrect (the status name was in all uppercase on your screenshot).

First test without conditional execution (it should require the radio button for all statuses), then add conditional execution to limit to one status.

TAGS
AUG Leaders

Atlassian Community Events