Atlassian uses cookies to improve your browsing experience, perform analytics and research, and conduct advertising. Accept all cookies to indicate that you agree to our use of cookies on your device. Atlassian cookies and tracking notice, (opens new window)
Confluence-Prod

Expressions for Jira
Results will update as you type.
  • Expressions for Jira - Cloud
    • Getting started - Expressions for Jira
    • Features & Abilities - Expressions for Jira
      • Validators & Conditions Module
        • Configure Expressions
        • Expressions in Action
        • Expressions Repository
      • Custom Field Types
    • FAQs - Frequently Asked Questions
  • EULA
  • Privacy Policy
    Calendars

Company hub
, (opens new window)
You‘re viewing this with anonymous access, so some content might be blocked.
/
Validators & Conditions Module
Updated Feb 25

    Validators & Conditions Module

    Users can implement custom logic in Jira workflows by utilizing Jira Expressions for validators and conditions.

    Here are some examples of how users can customize Jira workflow validators and conditions using Jira expressions:

    1. Ensure that the summary contains the text "Jira" while creating an issue:
      issue.summary.match("Jira") != null (Validator): This expression ensures that an issue cannot create unless summary contains the text "Jira".

    image-20241007-045149.png
    1. Ensure issue comment field has at least one comment: issue.comments.length > 0 (Condition)
      This expression ensures that an issue cannot transition to pending unless it has at least one comment.

    image-20241007-050252.png

     

    {"serverDuration": 21, "requestCorrelationId": "e9a2512e6f384ed181e4f71f46a875d8"}