Confluence has been updated to version 6.15.9


This article shows how to set the request type using the visual editor


Whenever using the visual editor, it is not possible to set the request type on a Jira Service Management project, because the custom field is not listed as a mapping option.

Within the visual editor, it is possible to add a script rule which solves this gap - more examples are available in the Script rules examples document

Configuration steps

Request types on Jira Service Management are configured per issue type. 

In the example below the request type 'Report a problem' and 'Issue with a build' are both mapped to the issue type 'Incident'

To be able to set the customField request type to a certain value - make sure that the ticket is created with the corresponding issue type.
The issue type can be set by using the 'issue type mapping rule'

In the example below - tasks in the software project is mapped to the 'Add a question' issue type

Once that the issue type is set correctly, add a script rule

In the script rule add following code

// whenever this is the first sync - update the custom field 'Request Type' to 'Report a problem'

if (firstSync) {
    sd.issue.customFields."Request Type".value = "Report a problem"

Give it a try

Have more questions? Ask the community

Back to FAQ