The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Log work in transition screen

Bettina Hübner
Contributor
October 7, 2015

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:

  • 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?

https://docs.atlassian.com/software/jira/docs/api/latest/com/atlassian/jira/mail/TemplateIssue.html

Thanks in advance,

Bettina

2 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Bettina Hübner
Contributor
October 8, 2015

The JEMH postfunction is at the end.

0 votes
Andy Brook
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
October 8, 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"

TAGS
AUG Leaders

Atlassian Community Events