# How to implement a flag popup with java method condition

**URL:** <https://community.developer.atlassian.com/t/how-to-implement-a-flag-popup-with-java-method-condition/12362>\
**Category:** Jira Server\
**Tags:** aui\
**Created:** [December 14, 2017, 10:43am UTC](https://community.developer.atlassian.com/t/how-to-implement-a-flag-popup-with-java-method-condition/12362 "2017-12-14T10:43:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![marcelhoell](https://avatars.discourse-cdn.com/v4/letter/m/ccd318/32.png) [@marcelhoell](https://community.developer.atlassian.com/u/marcelhoell)\
**Post date:** [December 14, 2017, 10:43am UTC](https://community.developer.atlassian.com/t/how-to-implement-a-flag-popup-with-java-method-condition/12362/1 "2017-12-14T10:43:01Z")

</div>

Actually I have a IssueEventListener implemented in JAVA. Now, based on the condition I am checking within the EventListener, I want to display a flag (AUI) to the user.

Simply, this is an OutOfOffice plugin in Jira which checks, if a user is in vacation and if so display a flag to the user, that he should be aware, that the user is not in house. This check is done with reading a txt file with the OOF information.

How can I create a AUI flag UI and display it based on the condition checked with the IssueEventListener?

Thank you in advance.
