I want calculate time, how much issue was in status "In Progress" and add it to "Time Spent". For this I add this post-function:
Field Total time spent (minutes) will be assigned with the calculation result of the formula: {Current date and time} -{Date and time of last update}
{MINUTE} = 1000 * 60
. Once configured, transition looks like that: