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

Your Points Tracker
  • 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
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?
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

Chaining events

Using JIRA Core 7.6, ScriptRunner 5.2.1

I have a Script Listener that fires a RevDateUpdate event whenever it receives an Issue Updated event, with a condition of checking if the update occurred to our custom field "Review By Date".  Our conditional and event/notification schemes all seem correct.

The reason we do this is specific users (defined in another custom field) should receive only those RevDateUpdates.  And the RevDateUpdate notification uses an email template specifically to show the Review By Date changes.

However, I noticed that while the base Issue Update notifications (I turned on for testing) look correct, the emails from the RevDateUpdate aren't correctly showing what changed, and I have a feeling it's because the RevDateUpdate event doesn't know anything about what actually changed. It seems to be picking the very first change made to the issue.

Is this the best way to be handling this type of situation, or is chaining event notifications like this bad form?  Is there a way to pass information from one event to the other so that my RevDateUpdate template essentially acts like a very specific type of issue update (but still use the #changesIncludingStatus call)? 

Or am I going to need to pull out the data programmatically in my template from the changelog object to find the last occurrence of the Review By Date changes?  I'm not nearly experienced yet with velocity so that prospect is a little daunting at the moment.



0 answers

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Marketplace Apps & Integrations

Staying organized with Jira: best practices for a better project management

Project managers know this problem: A “mountain of work” lays in front of you, and you don’t know how and where to tackle them. Different to-dos lie ahead, but just one task after the other can be ha...

177 views 2 1
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