Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

ScriptRunner Behaviour get request Type

Hello everybody. 

I try to get Request Type value in behaviours using getRequestTypeName() function.  But the result is null. 

Anybody knows how get this value?  





1 answer

0 votes
Charlie Misonne Community Leader May 27, 2022

Hi Mauricio,

Did you take a look at this documentation from the vendor already?

I'm not 100% sure it is related. Could you share some extra context about your goal? Where is the behavior running and can you share some extra code?

Hi Charlie. 

I need to hide some fields in Jira Screen depends of request type value. 

I find the following article but is not working.

However, the documentation you've given me indicates that it's not possible to get the value of the Request Type field using a script.

Following you could see the script I built. (Behaviours)


// Get request type value (Service Management / Service Desk)
def reqType = getRequestTypeName()

def issueTypeField = getFieldById(ISSUE_TYPE)
def summaryField = getFieldById(SUMMARY)

switch (reqType) {

case "Value1":
summaryField.setHelpText('Finalidad del Acceso')

case "value2":
summaryField.setHelpText('Denominación de la campaña')



Do you have any suggesitions? 

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted in Jira Service Management

Jira Service Management Documentation Opportunities

Hello everyone, Hope everyone is safe! A few months ago we posted an article sharing all the new articles and documentation that we, the AMER Jira Service Management team created. As mentioned ...

266 views 0 6
Join discussion

Community Events

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

Events near you