I created a listener with the Issue Updated event.
Some questions I have is what exactly does the Issue Updated event look out for? The reason I ask this is because when I tried getting the changehistory I noticed it doesn't include changes like new comments or creation of subtasks which to me are issue changes/updates.
What I am trying to do is whenever the "Updated" date is changed get the author, if the change was made by a specific user then update another custom field with something.
"Issue Updated" should cover all issues which have had their details changed that includes Editing an issue, changing the summary, deleting a comment, attaching files to the issue, linking an issue.
On Jira Cloud in the Custom Fields for the Site Admin; if you navigate from the normal list to the 'Advanced Fields' there is a special field that display the username of the last commenter.
I don't want the username of the last commenter. I need the author of the last change to the "Updated" field. The "Updated Date" field on the right side of the screen.
Problem with ChangeHistoryManager is that it doesn't record all changes, such as comments or creation of subtasks, so it returns the incorrect username of the last change. For example, if someone comments on the ticket this updates the "Updated Date" field yet the ChangeHistoryManager doesn't record that.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Issue updated is probably best thought of as a catch-all for any event that is not something else.
Comment, work logged, moved, created, <transition event>, and so-on, these are all specific events. Issue updated was originally for just "issue edited" effectively, but since Jira 2 has been used to catch anything else for which there is no event.
Note that issue linked was not considered an event until 7.something-recent, which was very frustrating, and the (still extant) reason you don't get events for sub-tasks is that they are independent issues with a link, not an update on their parent. Sub-tasks DO fire events, but events for themselves, not for their parent.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Issue Updated doesn't work for when someone comments.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.