Managing filters programmatically

Be you a beginner in JIRA or a professional, one of the features used often is creating and managing filters. The fact that we can save the searches, share them, and subscribe to them adds a lot of value to JIRA. So, how do we programmatically create and manage filters?

In this recipe, we will learn how to manage filters programmatically.

How to do it...

We will see the various aspects of managing the filters one-by-one.

Creating a filter

Most of the operations on managing filters are done using SearchRequestService. For creating a filter, the following are the steps:

  1. Create the query to be saved as a filter. The query can be created using JqlQueryBuilder, as we have seen in the previous recipes.
  2. Create a SearchRequest ...

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.