Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
Next:
badges earned

Your Points Tracker
Challenges
Leaderboard
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Recognition
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Kudos
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

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

Automation to set one field clears another Edited

I have 2 rules set up in Automation for Jira:

  1. On create, set a specific field, based on a value in the parent, for specific issue types
  2. On create, set a specific field to TRUE for all issue types

When the second rule runs, it clears the value set by the first rule. 

Does anyone know how I can prevent that from happening? I can't find anywhere to specify the order in which the rules run. 

 

UPDATE: I tried combining these into one rule but the result is the same.

1 answer

1 accepted

1 vote
Answer accepted

Hi @Kathy 

You are most likely running into timing/race-track conditions for your rules.  The created issue trigger seems very susceptible to this condition...at this time.

You could try this to work-around the issue, combining to use one rule.

  • Trigger: issue created
  • Action: re-fetch (to fully re-load the issue as it may not be ready at trigger time)
  • Action: edit issue to set your field for ALL issue types (from your rule 2)
  • Action: re-fetch to reload the results
  • Condition: to check for the issue types to update (from your rule 1)
  • Action: edit issue to update values from the parent

Best regards,

Bill

@Bill Sheboy Thanks, I suspected that was the problem but I wasn't sure how to address it. I wasn't aware of the "refetch" action. I will give that a try! 

Like Bill Sheboy likes this

@Bill Sheboy that worked like a charm, thanks!!!!! 

Like Bill Sheboy likes this

Awesome!  I am glad that helped you.

Like Kathy likes this

Suggest an answer

Log in or Sign up to answer
TAGS

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