Log work in transition screen


in my JIRA Workflow the user can log work in the screen shown for the final transition. Additionally, a mail (JEMH message) is sent as a post function of the same transition. It should contain total amount of work logged so far.

The logged work is part of the mail content (Velocity template using $issue.getAggregateTimeSpent() and $issue.getTimeSpent()). Both functions return the same amount of time: Unfortunately, this is the value of time spent before the transition.

The work logged during the transiton (in the transition screen) updates the issue field after the transition is finished, but the old value gets included in the mail. Why does this happen? The "Send message by JEMH" is the last post function of the transition.

(Other post functions of the transition:

  • Set issue status to the linked status of the destination workflow step.
  • Add a comment to an issue if one is entered during a transition.
  • Update change history for an issue and store the issue in the database.
  • Re-index an issue to keep indexes in sync with the database.
  • Fire a Allgemeines Ereignis event that can be processed by the listeners)

JIRA Version is 6.4.3, JEMH Version is 1.7.28

Should I use another issue function? Any other ideas?


Thanks in advance,


2 answers

0 votes
Andy Brook Community Champion Oct 08, 2015

order matters, you don't say where it is in the list you provide, put the JEMH postfunction at the end, after "Re-index an issue to keep indexes in sync with the database"

The JEMH postfunction is at the end.

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

2,813 views 11 18
Join discussion

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot