Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Jira validator's field changed after save

Pirasa Chokpitiboon July 3, 2023

Hi, 

I'm trying to update universal validator, here is my query:

({Epic Name} = "A/B Exp" AND {customfield_19200} != "") OR {Epic Name} != "A/B Exp"

But once I clicked 'update' the query changed to:

({Epic Name} = "A/B Exp" AND {customfield_19200} != "") OR {customfield_10004} != "A/B Exp"

 

I don't know what customfield_10004 came from and this change cause my validator work incorrectly. Pls advise

2 answers

1 accepted

0 votes
Answer accepted
Pirasa Chokpitiboon July 4, 2023

I believe it has something with slash sign as only single query {Epic Name} = "A/B Exp" AND {customfield_19200} != "") it works.

Now I changed from {Epic Name} to {Epic Link} to avoid using two slashes in 1 query and it works

0 votes
Mirek
Community Champion
July 4, 2023

Welcome @Pirasa Chokpitiboon !

That is interesting that first part is not changing but it does it later. Not sure which version of Jira you are using and not sure if this is On-Prem or Cloud but what would happen if you switch the query a little bit?

{Epic Name} != "A/B Exp" OR ({Epic Name} = "A/B Exp" AND {customfield_19200} != "")

or add additional () in the second condition

({Epic Name} = "A/B Exp" AND {customfield_19200} != "") OR ({Epic Name} != "A/B Exp")

Pirasa Chokpitiboon July 4, 2023

Thank you @Mirek :)

If the URL is company's host then it should be Cloud one right?

I tried swap the query but result is the same, I believe it has something with slash (/) sign as first with only single query {Epic Name} = "A/B Exp" AND {customfield_19200} != "") it works.

Now I changed from {Epic Name} to {Epic Link} to avoid using two slashes in 1 query and it works

Suggest an answer

Log in or Sign up to answer