On this page

Still need help?

The Atlassian Community is here for you.

Ask the community

Issue Fields Condition

  • Use smart values here: No
  • Available in Server Lite: No

This condition allows you to quickly put a condition together without needing to write smart values or JQL. You just click what you want from our populated dropdowns and fill in the blanks. It supports most common Jira fields. Use this condition ahead of JQL and Advanced Compare Condition, where possible.

Advanced Compare Condition

  • Use smart values here: Yes
  • Available in Server Lite: No

This powerful condition allows you to compare objects using using smart values and regular expressions.
In most cases, you should use the Issue Fields Condition, but the Advanced Compare Condition can give you some extra options (regular expressions, functions etc.).

Let's look a real life use case as per the screenshot below. If you wanted to re-open a Jira issue when a customer comments, you would start with the Issue Commented trigger, add a condition that compares the comment's author with who the reporter is, add lastly add another condition to check if the issue's status is 'Done.' Once these conditions are satisfied, transition the issue to 'In Progress'

Comparison Methods:

  • Equals (the assignee is Bob)
  • Does not equal (the assignee is not Bob)
  • Starts with (the reporters name starts with A)
  • Contains (the summary contains Beer)
  • Does not contain (the summary does not contain Beer)

Comparing using regular expressions

You can use regular expressions to test for a pattern. For example, check whether a field value contains, exactly matches or doesn't contain what is in the regular expression field:

If/Else block

  • Use smart values here: Yes
  • Available in Server Lite: No

The 'If else' block allows for alternate actions to be executed based on whether certain conditions match or don't match. It is a really powerful condition and you can add as many if/else conditions as you want. Read more about it in this article.

Issue attachments

  • Use smart values here: No
  • Available in Server Lite: No

This condition runs a simple check: does the comment or description field have any attachments? For example, you may want to check whether a customer has included a screenshot, a vendor has included an invoice, or your lawyer has attached your divorce papers.

When an issue is created, if there are no attachments, then you can leave an automated comment for the customer requesting more info.

To get more granular, you could combine this condition with a JQL search condition to see if the filename is a specific format. You can also include a conditional compare on some of the properties of your attachments (list not exhaustive):


  • Use smart values here: Yes
  • Available in Server Lite: Yes

tip/resting Created with Sketch.


Before you get started with a JQL condition, check to see whether the Issue Condition can do the same job as it will be easier and quicker.

JQL is the most powerful and flexible way to search for your issues in Jira. Naturally, we provided this same functionality as a condition for Automation for Jira. This condition checks to see if an issue matches a specified JQL query and, if it does, the rule is allowed to continue running. If the condition doesn't pass, the rule stops running.
Mistakes can be made when putting together JQL but we provide a handy validation button within the condition so you can check that it works (if you use Smart Values, we can't check whether the JQL is valid though).

The example below is checking that the status category of the status for a given issue is Done.

There is lots of information on how you can use JQL to search for issues from Atlassian.

Related issues

  • Use smart values here: No
  • Available in Server Lite: No

This condition goes through issues that are linked to the trigger issue (parent, sub-tasks, epics, stories, etc.) and checks if the related issue exists, does not exist, or if it matches a JQL query or not.

Last modified on Jul 1, 2020

Was this helpful?

Provide feedback about this article
Powered by Confluence and Scroll Viewport.