Subscribing to a filter

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.

How to do it...

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:

  1. Cron Expression: This is the most important ...

Get JIRA Development Cookbook - Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.