Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Current »

The condition and validator modules can be found in Workflows.
Unfortunately, this functionality is mandatory to be made using Jira expressions, so there’s no python here.

But we still got your back, the main functionality for JXP’s is covered in there.

To access the Workflow functionality, follow the steps below:

  1. Go to Settings Workflows

  2. Select the workflow you want to add a Post function and click “Edit” in the 3 dots on the right.

  3. Click “Edit”.

  4. Now you can either go to the Diagram View or the Text View.

  5. (Diagram) Click in the Transition you want to add a Post function and follow the diagram below:
    For Validators:
    Transition → Validators → Add Validator → Validator by Easy for Jira → Add

    image-20240317-235828.png

    For Conditions
    Transition → Conditions → Add Condition → Condition by Easy for Jira → Add

    image-20240318-001833.png

  6. Conditions and Validators is almost the same, with the difference of the Error message in the Validators. So this part is only different in the error message part.
    Now you are in the Validator by Easy for Jira Module, so you should:
    1. Name your Validator
    2. Give your validator a description
    3. Add an error message to popup when the action is not conforming to your Jira expression. (for validator only)
    4. Choose a ready to use module (see below) or write your own Jira Expression.

    image-20240318-000127.png

Custom Jira Expression (JXP)

Jira Expressions is the base for conditions and validators in Jira. To develop your own, use the official documentation.

image-20240318-000515.png

Your conditions / validators needs to be Passing to be created, so you need to provide an existing issue key to test towards allied to working JXP, JXPS that fail are not accepted, resulting in error.

The display for testing is
Passing or Error
true or false

To help you develop your custom Jira expressions using fields as your logic components, we added the “fields” section so you know what the field Name, Type and Key is, this is on the right side of your screen.

image-20240318-001514.png

Testing my Validator or Condition

After selecting the module you can set an issue key to test towards, select an existing issue key and once selected, you can change modules or either write custom JXP’s on the fly, it will be updated frequently so you can see when it’s passing or not, you don’t need to be clicking to test.

 

  • No labels