Workflow Enhancer For Jira - Boolean Logic for finding specific value(s) in multi-select field

Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 2, 2023

Hi all,

I'm trying to get a universal post function to find specific value(s) within a multi-select customfield; and if found, create a subtask based on the value selected.

The multi-select field I'm using is: Test multi-Select for Subtasks

It has three values within it:

  1. Test 1
  2. Test 2
  3. Test 3

So far I've tried to grab each of the values individually in their own universal post functions with the following boolean logic:

{Test multi-Select for Subtasks} = "Test 1"
{Test multi-Select for Subtasks} = "Test 2"
{Test multi-Select for Subtasks} = "Test 3"

 The "tester" within each of these universal post functions states everything seems OK.

However when I go through a live test of these universal post functions, If I select multiple values (Ex: Test 1 & Test 3) OR I select all of the options (Ex: Test 1, Test 2, & Test 3) None of the subtasks are created. All of these post functions seem to "fail".

I've tried going through the documentation, but I can't seem to find how to setup boolean logic for multi-select values.

Can someone please let me know what I'm doing wrong? ( Any suggestions @TNG Technology Consulting GmbH ?)



1 answer

0 votes
Matthias Bertsch [TNG Technology Consulting]
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
June 13, 2023

Hi Mike,

If multiple values are selected, the field value will no longer be equal to the exact values "Test 1", "Test 2", and "Test 3". Instead, it will contain a comma-separated list of the selected values. You could try working with regular expressions instead:

{Test multi-Select for Subtasks} = /.*Test 1.*/
{Test multi-Select for Subtasks} = /.*Test 2.*/
{Test multi-Select for Subtasks} = /.*Test 3.*/

Does this help?


Suggest an answer

Log in or Sign up to answer
AUG Leaders

Atlassian Community Events