...
See ServiceNow Required Permissions and ServiceNow OAuth Support for details.
...
Create Issue Tracking Instance
...
Property Name | Property Code | Required | Description | |||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ServiceNow URL | SN_URL | Yes | The URL for accessing ServiceNow. | |||||||||||||||||||
ServiceNow User Name | SN_PORT | Yes | A local ServiceNow service account user with a non-expiring password. | |||||||||||||||||||
ServiceNow Password | SN_PASSWORD | No* | The password for the ServiceNow User Name above. Note that encrypted properties are stored in Credential Store (Local or External) and can be configured using Edit button next to credential name drop down. Alternatively, you can reuse single credential for multiple properties also, in which case you should name that credential appropriately. Required for the following Auth Types, BasicAuth and OAuthResourceOwner | |||||||||||||||||||
ServiceNow Auth Type | SN_AUTH_TYPE | Yes | Authentication method for connecting to ServiceNow, BasicAuth, OAuthResourceOwner, OAuthJWTAssertion. Defaults to BasicAuth. | |||||||||||||||||||
ServiceNow Client ID | SN_CLIENT_ID | No* | The auto-generated unique ID of the application. The instance uses the client ID when requesting an access token. Required for the following Auth Types, OAuthResourceOwner and OAuthJWTAssertion. | |||||||||||||||||||
ServiceNow Client Secret | SN_CLIENT_SECRET | No* | The shared secret string that both the instance and the client application use to authorize communications with one another. The instance uses the client secret when requesting an access token. (Encrypted). Required for the following Auth Types, OAuthResourceOwner and OAuthJWTAssertion. | |||||||||||||||||||
ServiceNow Keystore Path | SN_KEYSTORE_PATH | No* | ServiceNow Keystore Path (path to the jks file). Required for the following Auth Types, OAuthJWTAssertion. | |||||||||||||||||||
ServiceNow Keystore Passphrase | SN_KEYSTORE_PASS | No* | Java keystore passphrase for the ServiceNow Keystore (Encrypted). Required for the following Auth Types, OAuthJWTAssertion. | |||||||||||||||||||
ServiceNow Certificate Alias | SN_CERT_ALIAS | No* | Private certificate alias. Required for the following Auth Types, OAuthJWTAssertion. | |||||||||||||||||||
ServiceNow Certificate Passphrase | SN_CERT_PASS | No* | Passphrase for the ServiceNow Certificate (Encrypted). Required for the following Auth Types, OAuthJWTAssertion. | |||||||||||||||||||
ServiceNow JWT Verifier Map Key ID | SN_JWT_VERIFIER_MAP_KEY_ID | No* | ServiceNow JWT Verifier Map Key ID. Required for the following Auth Types, OAuthJWTAssertion. | |||||||||||||||||||
ServiceNow Certificate Algorithm | SN_CERT_ALGORITHM | No* | Algorithm used for the certificate. Defaults to RS256. Required for the following Auth Types, OAuthJWTAssertion. | |||||||||||||||||||
ServiceNow Refresh Token Lifespan | SN_DEFAULT_REFRESH_TOKEN_LIFESPAN | No | The number of seconds that a refresh token is valid. The instance uses the lifespan value when requesting a refresh token. By default, refresh tokens expire in 100 days (8640000 seconds). | |||||||||||||||||||
ServiceNow Request GET URL | SN_REQUEST_GET_URL | No | The URL to get the change request details as json response.
| |||||||||||||||||||
ServiceNow Navigation Request URL | SN_REQUEST_NAV_URL | No | The URL to open ServiceNow and navigate to the Change ticket associated to the project workflow execution
| |||||||||||||||||||
ServiceNow Request POST URL | SN_REQUEST_POST_URL | No | The URL to create a change request.
| |||||||||||||||||||
Approved Check Script | SN_APPROVED_SCRIPT | No | A Groovy expressions which determines whether a task for the change ticket is approved or not. The expression must return a boolean, and has access to the following variables:
Simple Example which is used by default
Example that checks myfield value specific to target environment
Following example is to check if current date time is between start_date and end_date defined on Ticket. Let's assume format for the date string returned and TimeZone as GMT. Check if now is between start_date and end_date defined on ticket
| |||||||||||||||||||
Rejected Check Script | SN_REJECTED_SCRIPT | No | A Groovy expressions which determines whether a task for a change ticket is rejected or not. The expression must return a boolean, and as has access to the following variables:
Simple Example which is used by default
Example that checks myfield value specific to target environment
| |||||||||||||||||||
Additional Info Script | SN_ADDITIONAL_INFO_SCRIPT | No | A Groovy expression which determines additional information to add to an external approval when it is approved or rejected. The expression must return a Map<String, String> and have an entry with the key of "notes" for the value to get added to external approval as a task note. Script has access to the following variables:
Example where ServiceNow Approver(s) and time of approval are added to task notes
| |||||||||||||||||||
Don't Poll | SN_DONT_POLL | No | Returns whether FlexDeploy should poll ServiceNow to check the change tickets for Approval/Rejection. The default value is false, which means polling will occur. Only check this box if you are using the FlexDeploy REST API to communicate ticket approval/rejection. |
Info |
---|
ServiceNow ModulesMost common usage for ServiceNow is using the change request module, but other objects like service catalog request can be used by modifying the default GET, POST, and Nav URLs. If you plan to use a different module, for POST operation, use the tickets tab in the CMS configuration screen to add any additional fields required to create the object. |
ServiceNow Available TICKET Variables
Within the script properties on the ServiceNow Instance. The following values are available to you via the TICKET object to use in your script logic. For example, TICKET.approval would return the approval value of the ServiceNow change.
...