ServiceDeskPortalRequestCreatedEvent

Anna Protopapa November 7, 2017

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

1 answer

0 votes
Alexey Matveev
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 7, 2017

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); 

 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events