Forums

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

How do I get a "ScriptRunner Enhanced Search" Filter to auto refresh?

Dolly Kirubavathi
Contributor
August 26, 2022

This is my filter created using "ScriptRunner Enhanced Search"

 

 issueFunction in linkedIssuesOf("Project = XXX and issuetype = Epic", "is a Parent of")

 

 and every time I load this script, I would like it to reflect the latest data. But the results are not dynamic.

 

Any help is appreciated!!!!

4 comments

Comment

Log in or Sign up to comment
Robert Wen_Cprime_
Community Champion
August 26, 2022

Hi @Dolly Kirubavathi 

You didn't say whether this was for Cloud or Server/DC.

Dolly Kirubavathi
Contributor
August 26, 2022

Cloud

Sue Wilson
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.
August 26, 2022

On the Setting page you can specify how often ScriptRunner synchronizes your filters.  The default interval is five minutes.  The maximum allowed is an hour.  Recommendation is to use the default value unless you notice that filter synchronization makes too many requests to your JIRA instance and causes performance issues.

NOTE:  New filters are not synchronized on creation by default.  All new filters will be synchronized after the default interval of 5 minutes WHEN the Sync Filter option is selected in the Filter Creation Screen.  If the Sync Filter option is disabled, the filter does not automatically sync and must be manually synced from the Search screen using the Sync Filter button.

image1.png

image2.png

Every X minute, ScriptRunner will check if something has changed in your JIRA issues or someone has changed the ScriptRunner add-on settings recently.  If check is positive, then filters are synced with the changes made to the issues in your JIRA instance.  Filters are always run with the same set of permissions as the user who created the filter.

WARNING:  You must make sure that the ScriptRunner Add-On User has the Global Permission to Browse Users in order for this feature to work.

Like # people like this
Raul Pelaez _TecnoFor - Marketplace Partner_
Atlassian Partner
September 6, 2023

Hello Dolly, I supose you use Jira Cloud with Scriptrunner, then you need to configure the Sync option in your filter

Once created, new filters are not synchronized by default. All new filters are synchronized after the default interval of 5 minutes when the Sync Filter option is selected in the Filter Creation Screen. If the Sync Filter option is disabled, the filter does not automatically sync and must be manually synced from the Search screen using the Sync Filter button.

Best regards!

Howlader Shamim
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
December 25, 2024

Anwaser 

 

TAGS
AUG Leaders

Atlassian Community Events