I want to retrieve the request type in behavior for a service desk project. I see that it can be fetched from the examples given in scriptrunner :
def currentUser = ComponentAccessor.getJiraAuthenticationContext().getLoggedInUser()
RequestType getRequestType = requestTypeService.getRequestTypeForIssue(currentUser, issue).right().get()
String requestTypeName = getRequestType.getName()
However, this uses the issue object as parameter which I am unable to retrieve in the behavior as the create form returns null. I believe this snippet can be used in other operations in workflow/listeners but not in behavior.
Any insights will be of great help.
This morning, Atlassian announced the acquisition of ThinkTilt , the maker of ProForma, a no-code/low code form builder with 700+ customers worldwide. ThinkTilt helps IT empower any team in their or...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events