I am new to groovy, so I need some guidance:
1.) I'm trying to write a listener that executes on ticket creation with the following variables:
def issueManager = ComponentAccessor.getIssueManager()
def currentIssue = issueManager.getIssueObject("TestProject-1")
the rest of my codes works when currentIssue is static, like above with the ticket number as the string ("TestProject-1"). How can I get the key of the issue that triggered my listener...... event.issue.getKey() and event.issue.getID() did not work.
2.) How can I extract the summary of a ticket? I would eventually like to do some regex, searching not modifying. but I am not sure what classes I need, and methods to use, maybe currentIssue.summary()?