Hello,
I have a script fragment, which shows a prompt (dialog box) to the users. Currently, the script works fine, but it shows the prompt everytime the page loads. How do I limit this to once per user,/ or only at the time of login. Below is a snippet from the code,
def searchService = ComponentAccessor.getComponent(SearchService)
def user = ComponentAccessor.getJiraAuthenticationContext().getLoggedInUser();
def issueManager = ComponentAccessor.getIssueManager()
def searchRequestManager = ComponentAccessor.getComponent(SearchRequestManager)
def filter = searchRequestManager.getSearchRequestById(3737)
def query = filter.query
def search = searchService.search(user, query, PagerFilter.getUnlimitedFilter())