Passing a lookupObject that contains a special character

Patrick Olson
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 25, 2023

I am setting up some automation rules that involve searching the assets library.

I am searching an employee table to pull a department attribute from the table.

That AQL looks like this

objectType = "Internal" AND "Email Address" = {{reporter.emailaddress}}

 

Then I'm performing another Lookup objects and passing that value to get data from another table containing department information

objectType = "Department Owners" AND department = {{lookupObjects.Department}}

This works unles the department has an & or other special character.

Is there a way to escape have this value automatically escape special characters?

{{lookupObjects.Department}}

 

 

 

1 answer

1 accepted

0 votes
Answer accepted
Bill Sheboy
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.
September 25, 2023

Hi @Patrick Olson -- Welcome to the Atlassian Community!

Some things to try are to first wrap that smart value in double-quotation marks before comparing to the Department field, and if more is needed try using one of the encoding functions that will escape that text: https://support.atlassian.com/cloud-automation/docs/jira-smart-values-text-fields/

Kind regards,
Bill

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events