Hi,
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:
JIRA Version is 6.4.3, JEMH Version is 1.7.28
Should I use another issue function? Any other ideas?
https://docs.atlassian.com/software/jira/docs/api/latest/com/atlassian/jira/mail/TemplateIssue.html
Thanks in advance,
Bettina
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"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.