To enhance Service Gateway for Jira, you can configure the Jira Meshlet to the directives listed below:
Directive | Default Value | Description |
---|---|---|
sessionAuth | true | Indicates whether you want to authenticate your Jira connection with session IDs instead of basic authentication.
perspectium: jira: sessionAuth: true The following example enables the use of session IDs for your connection: perspectium: jira: server: true sessionAuth: true |
server | true | Enable the use of the Jira server for your Jira connection.
perspectium: jira: server: true |
useTransitions | false |
Enables you to use your own mappings for handling transitions in Jira. perspectium: jira: transition: useTransitions: true By default, the Jira meshlets will call the transitions API with just the ID value from the Common Document's <state> field: { "transition": { "id": "${JSON_ENCODE:$[XPATH:/common_incident/state]}" } } However if you want to use your own mapping that you define in the static/mapping/default folder of the meshlet's installed directory, you would set the useTransitions configuration to true and then add your own mapping and define it for use in the static/config/fieldMapping.json for the transition action. For example, if you wanted to also map the resolution field and add a comment for a transition, you would add the following mapping named transition.json into the static/mapping/default folder of the meshlet's installed directory: { "transition": { "id": "${JSON_ENCODE:$[XPATH:/common_incident/state]}" }, "fields": { "resolution": {"id": "${JSON_ENCODE:$[XPATH:/common_incident/close_code]}"} }, "update": { "comment": [ { "add": {"body": "${JSON_ENCODE:$[XPATH:/common_incident/close_notes]}"} } ] } } And then in the static/config/fieldMapping.json you would reference this mapping for the transition action: { "Source":"common_incident", "Target":"issue", "Action":"transition", "Description":"transition Jira status", "Provider":"jira", "Client":"default", "Mapping":"${file:static/mapping/default/transition.json}" }
|