We have seen various methods of managing filters. While filters are a great way to save searches and access them quickly at a later point in time, filter subscriptions are even better! The subscriptions help us to see the issues of interest at regular intervals, without even logging in to JIRA.
How do we subscribe to a filter programmatically? In this recipe, we will focus on subscribing to a filter in our plugins.
For the subscription of filters, JIRA provides a manager class implementing the FilterSubscriptionService
interface. This class provides the important methods needed for managing filter subscriptions.
There are three important parameters for filter subscriptions:
Cron Expression: This is the most important part of a subscription. It tells us when the subscription has to run, or in other words, it defines the schedule of a subscription. Cron expressions consist of the following fields, separated by spaces:
Field
Allowed Values
Allowed Special...