How to Check if the Current User is a Project Lead Using JMWE Data Center

This article explains how to configure a Jira Misc Workflow Extensions (JMWE) Validator to check if the user transitioning the issue is the project lead.

Steps to Add the Validator Condition

  1. Access Workflow Configuration:

    • Log in as a Jira administrator and navigate to Jira Administration > Issues.

    • Select Workflows and click on the workflow you want to edit.

    • Click Edit.

  2. Add or Modify Validator:

  3. Set the Validator Condition:

    • In the validator configuration:

    • 1. Select Groovy Script

    • 2. Add the following script:

      currentUser.key == issue.project.lead

      3. Add a desired error message

    • 4. Click on Add.

      2024-06-03_10-51-32-20240603-052402.png

  4. Save and Publish:

    • Save the validator configuration.

    • Publish the workflow to apply the changes.

      2024-06-03_10-54-45-20240603-052452.png

For more use cases, please visit