I'm trying to make a script listener to spit out a comment every time the fixVersion is changed. Ideally, I want the comment to be something like "Old Version: v13, New Version: v14". Where I'm having is trouble is this "def change = event?.getChangeLog()?.getRelated("ChildChangeItem")?.find {it.field == "Fix Version/s"}" always outputs null to change.oldline. I can't figure out how to get the previous fixversion after the change.
Thanks!
Hi @Logan Clemons ,
It looks like you need to simply use
def change = event?.getChangeLog()?.getRelated("ChildChangeItem")?.find {it.field == "Fix Version"}
instead.
Antoine
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.