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:
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 ?)
Thanks,
Mike
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?
Best,
Matthias
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.