Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

How do I find out which data has changed in my JIRA Issue

DanielB August 13, 2015

Hi everyone,

 

I have created a JIRA Issue Listener to be notified about issue changes.

I do get an IssueEvent and an Issue, but I don´t know how to find out what exactly in my Issue has changed.

For example: I would like to know whether my summary, my estimation or my description has been changed.

 

Is there any way to find out what exactly has changed ?

2 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
michael_ngangom
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.
August 13, 2015

Hello,

I do not think that it is possible with the available templates at the moment (atleast as far as I know).

0 votes
Andreas Ebert
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.
August 13, 2015

Your best bet is to inspect the GenericValue returned from com.atlassian.jira.event.issue.IssueEvent#getChangeLog

If your using JIRA 6.3+, it may be more comfortable to get the respective ChangeHistory first:

ChangeHistory changeHistory = changeHistoryManager.getChangeHistoryById(event.getChangeLog().getLong("id"));
DanielB August 13, 2015

Sadly we are using 6.2.1 :( . I will take a look at the ChangeLog but I don´t think there is much to get from it ...

DanielB August 13, 2015

Ok, no way ... GenericValue from getChangeLog doesn´t provide any info at all about the value that got changed ...

TAGS
AUG Leaders

Atlassian Community Events