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

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 Use cases for validators

Related content

Identifying the usage of JMWE extensions in Jira DataCenter
Identifying the usage of JMWE extensions in Jira DataCenter
Read with this
User Project Role Validator
User Project Role Validator
More like this
User Project Role Validator
User Project Role Validator
More like this
How to validate the reporter based on a group using JMWE app
How to validate the reporter based on a group using JMWE app
More like this
User Group and/or Project Role Condition
User Group and/or Project Role Condition
More like this