портал в сам request, чтобы его мог видеть reporter?
Добавила через веб панель scriptrunner import com.atlassian.jira.component.ComponentAccessor import com.atlassian.servicedesk.api.requesttype.RequestTypeService import com.onresolve.scriptrunner.runner.customisers.WithPlugin import com.atlassian.jira.issue.Issue @WithPlugin("com.atlassian.servicedesk") def requestTypeService = ComponentAccessor.getOSGiComponentInstanceOfType(RequestTypeService) def user = ComponentAccessor.getUserManager().getUserByName(<user>) def issue = context.issue as Issue def reqQ = requestTypeService.newQueryBuilder().issue(issue.id).build() def reqT = requestTypeService.getRequestTypes(user, reqQ) def requestTypeName = reqT.getResults()[0].getName() writer.write("Request Type: " + requestTypeName.toString()) Source
Обсуждают сегодня