Hi! I would like to do the next:
user change issue type, for example, from general request to the some determined issue type.
I would like to change e-mail template in order to put there some special text.
So, I need to use "issueupdated.vm" template for this purpose. But this one are using for all changes in issue.
Сonsequently, I need to compare previous issue type with new one.
So, my question is: how I can determine previous issue type in e-mail template?
Thanks in advance!
P.S. Jira version is 4.4
Hi,
I would say that your best bet is to use the ChangeHistoryManager to get all changes made to the issue type. Have a look at ChangeHistoryManager.getChangeItemsForField(Issue issue, String changeItemFieldName) and see if that's not what you were looking for.
Good luck!
See changelog.vm:
#foreach ($changeitem in $changelog.getRelated("ChildChangeItem"))
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dear Colleagues,
Thanks for your answers!
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.