Forums

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

When an Issue Created event is triggered, will there be a change log?

Jeremy Buffa
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 19, 2018

In scriptrunner, I have a script listener that runs on Issue Created or Issue Updated events. Am I correct in assuming if it is an Issue Created event, there will be no change log? (eg. event.getChangeLog() will return null)
The documentation says "The IssueEvent object thrown as a result of an edit operation, may now return null from a getChangeLog() call. This can occur when a user chooses to edit an issue but only leaves a comment and makes no other changes to the issue." but I can't find any concrete information for a create operation

1 answer

0 votes
Alexey Matveev
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.
February 19, 2018

What exactly do you want to do? Yes, there are no logs in the changelog on creation.

Jeremy Buffa
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 20, 2018

Thanks Alexey. I am checking for when an issue gets created or updated. If either of those events occur, I want to grab the new string of a particular custom field and then process it in some way. Currently the script uses the changelog to find all the changes and tests on that, but I am finding that these don't get flagged if I create an issue, rather than update an existing one.

Alexey Matveev
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.
February 20, 2018

you can grab event.issue and get all data from there

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events