Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

How to configure an automation rule which runs when a date was added to a field which was not empty?

Kinga Bogusz
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!
Nov 10, 2023

Hi there, 

I'm relatively new to Jira and mostly self taught and I am now stuck in trying to set up an automation which is giving me nightmares. 

I need to set up a rule where: If field X is updated, send a notification via Slack (this I have figured out), only if field X was not empty before. 

Basically, if there was a date in field X, and somebody changed it, send a notification, but if the field was empty, don't send a notification. 

This is what I tried and I thought it would work but I now understand that it won't work for what I need: 

image.png

Any ideas?

1 answer

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.
Nov 10, 2023

Hi @Kinga Bogusz -- Welcome to the Atlassian Community!

You may use the changelog smart values to check if the prior value was empty: https://support.atlassian.com/cloud-automation/docs/jira-smart-values-issues/#--changelog--

Specifically, you could add an advanced compare condition, like this:

  • first value: {{changelog.your field smart value}}{{fromString}}{{/}}
  • condition: does not equal
  • second value: leave this empty

 

The key will be using the correct smart value for your field.

Smart values are name, spacing, and case-sensitive.  And, the smart value does not always match the displayed name on the issue views.  To confirm your smart value, please use this how-to article.  Essentially you do these steps:

  1. identify an example issue with your field
  2. using a browser tab, call a REST API function to load the issue
  3. search on the page for your field name (e.g., using CTRL-F)
  4. that will show the smart value and custom field id

https://support.atlassian.com/cloud-automation/docs/find-the-smart-value-for-a-field/

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