JSM Utility Workflow Functions

List of the Jira Service Management specific workflow utilities

 

What?

Function Name

Returned Variable Type

Parameters

Parameter Type

Comment

What?

Function Name

Returned Variable Type

Parameters

Parameter Type

Comment

Get Service Desk

wf.itsm.jsdm.get_service_desk

 

 

 

If user connect through portal, just return his current service desk. For other channels let user select service desk. If on JSM only one service desk return it automatically.

Get Authorization token

wf.itsm.ticket.get_authorization_header

String

 

 

Returns Authorization for the current user

Switch Service Desk

wf.itsm.jsdm.switch_service_desk

 

 

 

Let the user select service desk and set it into projectKey variable.

If in JSM two service desk, switch to second automatically

Get request type

wf.itsm.jsdm.get_request_type

Based on return_type

desk

Mandatory, String (could be a variable)

Define a list of request types available for the given ticket and ask user to select one of them

return_type

Optional, “int” or “tuple” (“int” by default)

reqtype_name

Optional, Srting

Get change type ID

wf.itsm.jsdm.get_change_type

Integer (if change type is not applicable returns None)

change_type

Mandatory, String

Check change_type among applicable change types. Returns it ID if found, else None

Get slot filling default values

wf.itsm.jsdm.get_slot_filling_default_values

Dictionary

req_type

Optional, Srting

Uses jsdm_slot_filling_default_values.csv as a source and return dictionary with devault values which can be used then into slot filling

change_type

Optional, Srting

Process fields

wf.itsm.jsdm.process_fields

 

desk

Mandatory, Integer

Defines all mandatory and extra fields for the given request type in the given service desk and fill them with the user replies or default values (where defined)

req_type

Mandatory, Srting

extra_fields

Optional, Srting

default_fields

Optional, Dictionary