Hi all,
I experimented a little. I want to have the this information in a custom field:
From | To | By | Retaining time | |
---|---|---|---|---|
(status) | (status) | (displayName) | ... | 0 days 0 hours 1.0 minutes in (status) |
I did the following:
- Access the REST api
- Get the changelog with the EXPAND parameter
- put the results in a map
- iterate through the history segment of the map for status changes
- extract author, created and status change
- calculate the retaining time
- display the result via velocity template
This works fine in the preview but kills Jira when put into production ;-)
Is there a better alternative to get the same results?
Thanks!
Ok I've found an alternative using ChangeHistory and ChangeHistoryManager:
Have a nice time!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.