Forums

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

Matching on a date/time field if empty

David Loszewski
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 2, 2021

I'm attempting to run a rule to transition an item when someone deletes the date from the date/time field I have called "Upgrade Date".  It moved it into the "Scheduled" transition ok if I enter a date in, but if I remove the date so it's empty, it doesn't seem to be matching.  Any ideas what I could be doing wrong? 

Screenshot from 2021-09-02 14-02-40.png

2 answers

1 vote
Trudy Claspill
Community Champion
September 2, 2021

Can you show us the details of the "ELSE-IF: all match" branch, specifically the details of the condition to check the Upgrade Date field? I suspect there is something off about the "Upgrade Date equals Empty". Instead i would probably try a JQL condition there.

 

Screen Shot 2021-09-02 at 11.33.38 AM.png

David Loszewski
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 3, 2021

Screenshot_20210903_104121.png

I'll try the JQL condition instead

0 votes
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 2, 2021

Hi @David Loszewski 

Please try what Trudy suggests first...and if you still see an issue...

According to some other recent posts I've seen, there still appear to be issues with IS EMPTY tests on custom fields which have been cleared of a prior value.  So another way to solve this (using your same trigger) is with a couple of advanced compare conditions to check the changelog:

  • if {{issue.changelog.Upgrade date.fromString.length()}} is greater than 0, and...
  • if {{issue.changelog.Upgrade date.toString.length()}} equals 0

Please look here for more details on change log: https://support.atlassian.com/jira-software-cloud/docs/smart-values-general/#Smartvaluesgeneral---changelog--

Best regards,
Bill

Suggest an answer

Log in or Sign up to answer