---
title: "JQL precondition"
canonical: "https://support.appfire.com/space/JSUCLOUD/12518033/JQL%20precondition"
format: markdown
---
> Macro (aura-html)

## Description

The JQL precondition compares the number of issues returned from the JQL query against predefined conditions like:

- Find at least one issue
- Must not find any issue
- Compare with a particular number

Some of the simple things you would do with the JQL Precondition, you might also achieve with the [Value Field Precondition](https://appfire.atlassian.net/wiki/spaces/JSUCLOUD/pages/12518009). Choose the approach that is the simplest for you and your Jira admin colleagues.

## Configuration

You must write the JQL query and choose one option for the number of issues found. In the example below,* *the post function will only be executed for bugs. You don’t need a separate workflow (and special workflow scheme configuration) when you only want one post function to perform differently for a particular issue type. 

> ✅ For tips on using JQL with JSU, see [JQL Reference](https://appfire.atlassian.net/wiki/spaces/JSUCLOUD/pages/12518329).

![Example of the JQL precondition as described on this page.](media://4bbfe4d5-d83d-43d6-8daf-2307fb722c89)

## Examples

See the [JQL Use Cases](https://appfire.atlassian.net/wiki/spaces/JSUCLOUD/pages/12518307) for several examples.

## Supported field types

> Macro (include)