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

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How do I specifically use Original Estimate for Value Changes trigger, instead of Time Tracking? Edited

Hello we have a rule setup that sends out an email notification anytime a User modifies the Original Estimate field on a ticket while it's in an active Sprint.

The problem with this setup is that the only option available to select for this from the Value Changes trigger is Time Tracking. So of course frustratingly this will also send email notifications out anytime someone modifies the Remaining Estimate field too :(

ValueChanges.jpg

So would like to know if it's possible to have this automation setup but only apply specifically for the Original Estimate field?

FieldValue.jpg

1 answer

1 accepted

Hi @Dan H 

The {{fieldChange}} smart value which is set by the Field value changed trigger contains the following fields:

  • field
  • fieldType
  • from
  • fromString
  • to
  • toString

In the case of the Time tracking field, the field item will contain one of:

  • timeestimate
  • timeoriginalestimate

You can use these values in an Advanced compare condition to discover which time tracking field was changed as seen in the below image:

Screenshot 2021-01-26 at 14.44.19.png

Brilliant, thank you very much Gareth!

Appreciate the clear, easy to understand response as well as including screenshot : )

Like Gareth Cantrell likes this

@Gareth Cantrell Quick question, I use this condition in another very similar Rule but I'm getting in the logs that this doesn't appear to work if the Original Estimate is blank and then a value is entered (i.e. for new tickets created).

e.g.   Original Estimate:      --->  Original Estimate: 2d

Then no actions performed as it fails this advanced condition.

So not sure if I'm missing something?

@Dan H if you're using a different trigger in your rule then the {{fieldChange}} smart value will not be set.

Could you attach a screenshot of your rule-chain view up to the point of the condition that's failing?

Certainly!

So on a ticket if an Original Estimate value is entered for the first time, it will 'fail' the first condition below (No Actions Performed)


Untitled.jpg

So what I'm trying to achieve is the following;

If Original Estimate value is entered (if blank/zero) OR changed then continue with rule.

 

I've attempted to do this by creating a second Rule with: timeoriginalestimate is greater than 0 (which works!) but now I've run into the problem of both Rules will successfully trigger anytime the value is changed :s

Hi @Dan H 

In the rule where you want to check when the field is initially populated, you need to look for {{fieldChange.field}} equal to timetracking.

For checking when the original estimate is updated, you need to look for {{fieldChange.field}} equal to timeoriginalestimate.

This behaviour is peculiar to the time tracking field and you can see this by using the "Log action" component and setting the smart value in the log message.

Like Dan H likes this

Thank you again @Gareth Cantrell this works!

Two separate rules setup to handle both those conditions;

Untitled3.jpg

 

I did initially try to place both of these into ONE rule using If / Else block, but I failed to get that to work lol (screenshot below). What happens for me is that the second IF always fails, but I'm happy if this solution only works by creating two rule :)

Untitled2.jpg

I also noticed the else block would not evaluate the condition.

Probably worth raising a bug with Atlassian for this.

Like Dan H likes this

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Jira Automation

Announcing the Jira automation template library!

Hi all,  After many months of work, I am delighted to announce the launch of the Jira Automation Template Library!  The Template Library is a new website dedicated to all things Jira au...

764 views 17 21
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you