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
What exactly do you want to do? Yes, there are no logs in the changelog on creation.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
you can grab event.issue and get all data from there
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.