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!
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.