Forums

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

Asset Compare dates in 2 attributes

Michael Frade
Contributor
July 29, 2025

Trying to sync up 2 date attributes in different Object types.  Want to find the ones that do not match.  Object type A has Refresh date attribute and Object type B has End date attribute. Object type A references Object type B thru an attribute in A called Model.  Tried doing "Model"."End Date" != "Refresh Date" and it is not working. Still getting object that have matching dates. 

Any tips?

1 answer

0 votes
Trudy Claspill
Community Champion
July 29, 2025

Hello @Michael Frade 

Where are you trying to use that comparison? An automation rule? A search?

Michael Frade
Contributor
July 29, 2025

It would be in a Branch AQL component in automation but testing the AQL query in the filter in Assets itself as I was not getting the desired results. It's the same in both places,  I am getting results where the dates do match.

Trudy Claspill
Community Champion
July 29, 2025

At the moment I'm stumped, but I'm going to keep working on it...

I get the same results as you.

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.
July 29, 2025

Hi @Michael Frade and @Trudy Claspill 

I do not believe that is possible with the built-in features of AQL: as with JQL, the left-side of an expression must be a field / attribute and not the value of one.

 

What do you want to do when a match to the condition is found?  Knowing that may suggest alternatives.

 

Kind regards,
Bill

Like # people like this

Suggest an answer

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

Atlassian Community Events