Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Get author of last change to "Updated" field

Vivian Escalante
Contributor
March 13, 2018

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. 

2 answers

1 vote
Shawn Masters
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 13, 2018

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

Vivian Escalante
Contributor
March 14, 2018

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. 

0 votes
Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 14, 2018

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.

Vivian Escalante
Contributor
March 14, 2018

Issue Updated doesn't work for when someone comments. 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events