Hello,
I am creating a Adaptavist Groovy Listener and I have everything working but I want to change it to use the customfield id or by passing in "customfield_19419" instead of "My Variable Name" is that possible?
I just do not want to update the code if another admin decides to change the name of the field.
def change = event?.getChangeLog()?.getRelated("ChildChangeItem")?.find {it.field == "My Variable Name"}
I don't have any experience with Adaptavist Groovy Listener, but with Automation for Jira, we could only use the customfield ID. Have you already tried it, and it not work? The syntax we used to reference the customfield was issue.fields.customfield_10603.
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.