I want to be able to create reports on what Customer Request Type was used when creating an Issue in Service Desk. For example, was the "General" request type selected, or was a specific one used.
I was thinking that the easiest thing to do might be to populate a custom field with the Customer Request Type on Issue Create.
I already have a Groovy script setup in the Workflow on Issue Create, but I'm not sure how to access the Customer Request Type value from the issue. So I think I just need to know how to get that value and I can set my custom field value to that same value for future reporting.
Hi Richard,
You can find probably find an answer to your question here: https://answers.atlassian.com/questions/9873288
Kind regards,
Hi Richard,
Customer Request Type is just a custom field, which means that you can retrieve its value calling issue.getCustomFieldValue:
def customFieldManager = ComponentAccessor.getCustomFieldManager() def reqTypeCF = customFieldManager.getCustomFieldObjectByName("Customer Request Type") def reqType = issue.getCustomFieldValue(reqTypeCF)
Hope that helped
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.