How do you create an OR statement in JIRA automation?

Lauryn Butcher September 26, 2022

Hello, I would like to change my current If/AND statements into If/OR. Is this something that is possible?

Screenshot 2022-09-26 121903.png

1 answer

1 accepted

2 votes
Answer accepted
Dave Mathijs
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
September 26, 2022

Hi @Lauryn Butcher replace the current conditions by a single JQL condition and write your query with OR statements.

Lauryn Butcher September 26, 2022

Hi Dave, yes I tried that but I am receiving this error for various parts of the JQL. Any idea how to resolve this?Screenshot 2022-09-26 125605.png

Dave Mathijs
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
September 26, 2022

Can you share the full JQL query please?

Lauryn Butcher September 26, 2022

project = PS AND issuetype = "PS Engagement" AND (“Project Folder” IS EMPTY OR “Adoption Plan” IS EMPTY OR "Client Solutions Executive" IS EMPTY OR "Business Driver" IS EMPTY OR "Changepoint Id" IS EMPTY OR "Project Manager" IS EMPTY)

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 26, 2022

Hi @Lauryn Butcher 

Some of the quotation marks in the JQL are the open/close marks (note the left/right slanting) rather than generic quotations.  Please try replacing those.

Kind regards,
Bill

Like # people like this
Lauryn Butcher September 27, 2022

Thanks Bill! That seems to have fixed the problem. I switched the quotation marks out for apostrophes. Screenshot 2022-09-27 101347.png

Like # people like this

Suggest an answer

Log in or Sign up to answer