Does anybody used this event in a ScriptRunner event listener? I need a simple example how to set the Summary equal to a custom field value.
Thank you
Hello, Anna
I could not find ServiceDeskPortalRequestCreatedEvent. But my guess is that it would be Issue Created Event since in the end every request in the service desk portal transforms to an issue in Jira. That is why you could create a listener with Issue Created Event and write a code like this:
def issueManager = ComponentAccessor.getIssueManager() def customFieldManager = ComponentAccessor.getCustomFieldManager() def cField = customFieldManager.getCustomFieldObject("customfield_id") def cFieldValue = issue.getCustomFieldValue(cField) issue.setSummary(cFieldValue);
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.