When working with listeners, having them respond only to specific events is often necessary. Typically, these events are filtered based on the project and issue type associated with the issue.
Solution
To address this concern, Power Scripts offers listener configuration settings that allow you to specify when the filter should trigger based on the project and issue type.
Step 1: Create a new listener
Navigate to the listeners configuration page by going to Power Apps Config > Power Scripts > Listeners
Click the Add listener button
Step 2: Configure the listener
After selecting a script for the listener, choose the event the listener should respond to. Only issue-specific events like Issue Created, Issue Updated, etc. can be filtered by project and issue type.
After selecting an issue-specific event, the input form will update with the new controls for filtering:
Apply the project and/or issue type filters as needed.
Click the Add button to complete the setup of the listener
Note:
Both the project and issue type filters can be set independently; they are not required together.
Multiple projects can be added to the project filter.
Multiple issue types can be added to the issue type filter.