Post functions preconditions

Jira Expression filtering

Post function in WMB has the option to be filtered by a Jira Expression. For example, let’s say you want to add a comment in a given transition, but just for the issue type Bug.

In this case, you can add this filter to the Jira Expression field:

issue.issueType.name == "Bug"

Know more about https://atsistemas.atlassian.net/wiki/spaces/WMBC/pages/2595946497

JQL filtering

Post functions in WMB Cloud has the option to be filtered by a JQL query. For example, let’s say you want to add a comment in a given transition, but just for the issues of type Bug.

In this case, you should add this filter to the Additional JQL field:

issuetype = Bug

Please notice how it is not necessary to reference the current issue. WMB Cloud will do this for you.

The resulting configuration will look like this:

image-20241010-132853.png

Click the Execute button know how may issues validate the result. Also, you can click in the “View in Jira” button to navigate to the page search with the same JQL.

FAQ

Can I use both Jira Expressions and JQL to filter the same post function?

Yes, it is possible to use both Jira Expressions and JQL (Jira Query Language) to filter the same post function. When both are used, they are evaluated independently, and an issue must satisfy both criteria to trigger the post function. However, to optimize performance, we recommend using either Jira Expressions or JQL, but not both simultaneously.