Hi together,
in Jira Asset Management I can create Automations
WHEN: Object created, Object updated
IF: objectType in (Processes)
THEN: execute groovy script
how in the groovy script can I retrieve the object of the WHEN-clause. Or in other words how do I retrieve the trigger object-key?
Would be nice, if somebody can support.
In your groovy script, before you even write the first line of code, there will be 2 or 3 variables.
log : an object of type org.apache.log4j.Logger to allow you to send messages to the insight_automation.log
object : an object of type
log.info "Running script on $object.objectKey - $object.label"
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.