Skip to main content
Skip table of contents

Atlassian Jira Service Management

LAST UPDATED: 04/16/2024

Overview

Atlassian Jira Service Management empowers teams to deliver excellent service experiences with features such as self-service, automation, SLAs, and CSAT reporting.

D3 SOAR is providing REST operations to function with Atlassian Jira Service Management.

Atlassian Jira Service Management is available for use in:

D3 SOAR

V14.0.52.0+

Category

Case Management

Deployment Options

Option II, Option IV

Permission Requirements

Each endpoint in the Atlassian Jira Service Management API requires a certain permission scope. The following are required scopes for the commands in this integration:

Command

Required Permission

Create Request

write:servicedesk-request

Create Request Comment

write:servicedesk-request

Get Request

read:servicedesk-request

Get Transitions

read:servicedesk-request

List Requests

read:servicedesk-request

List Request Type

read:servicedesk-request

List Service Desk

read:servicedesk-request

Perform Transiton

write:servicedesk-request

Test Connection

N/A

Connection

To connect to Atlassian Jira Service Management from D3 SOAR, please follow this part to collect the required information below:

Parameter

Description

Example

Default

Authentication Method

The type for authentication. If you select OAuth Authentication, please ensure that your OAuth 2.0 integration app has the following Jira API permission classic scopes: read:servicedesk-request, write:servicedesk-request.

Basic Authentication

Basic Authentication

Server URL (domain level)

The server URL of the Jira instance.

https://team-**************.atlassian.net

User Name

The user name to establish the API connection.

****@d3security.com

API Token

The API Token for authentication.

Your********

OAuth Authentication

Server URL (domain level)

The server URL of the Jira instance.

https://team-**************.atlassian.net

Client ID

The Client ID for authentication.

WCwz************************JWWv

Client Secret

The client secret for authentication.

EiRQ********************************************aSv4

Authorization Code

The authorization code is used for the OAuth2.0 with the grant type of OAuth 2.0. Please click Get Authorization button on the Connection page to automatically generate an authorization code.

ucF********************IuM

Callback URL

The callback url is used for the OAuth2.0 with the grant type of OAuth 2.0. Please add this callback url on JIRA console according to the instructions.

https://d3pocsite/****/*************.****

Refresh Token

The refresh token is used for the OAuth2.0 with the grant type of OAuth 2.0. Please click Get Refresh Token button on the Connection page to automatically generate a refresh token.

v1.M********************************Shp0

Configuring Atlassian Jira Service Management to Work With D3 SOAR

OAuth 2.0 Authentication

  1. Log in to Jira (https://developer.atlassian.com/console/myapps/) with your credentials.

  2. Click on the profile icon on the top right corner, then select Developer Console.

  3. On the Developer Console page, click Create and select OAuth 2.0 integration.

  4. Enter an App Name, and agree to Atlassian developer terms. Click Create.

  5. Select Permissions from the left sidebar. Locate Jira API, and click its adjacent Add button.

  6. Click Configure.

  7. On the Jira API page, click Edit Scopes.

  8. Select the following required scopes, then click Save. For each commands’ required permissions, see Permission Requirements.

  9. Select Authorization from the left sidebar. Locate OAuth 2.0 (3LO), and click its adjacent Add button.

  10. Enter the Callback URL generated from D3 SOAR (see step 4 of Authentication Type: OAuth Authentication), then click Save changes.

  11. Select Settings from the left sidebar. Under the Authentication details section, copy the Client ID and Secret for use to build the integration connection in D3 SOAR.

Basic Authentication

READER NOTE

The basic authentication method provides the same level of access as the user account would have access to on the Jira web UI.

  1. Log in to Jira (https://id.atlassian.com/manage-profile/security/api-tokens) with your credentials.

  2. Click Create API token.

  3. The Create an API token dialog box will appear. Enter a Label name and click Create.

  4. The generated API token will appear. Click Copy to save the API token to your clipboard. The API token will be required to build the integration connection in D3 SOAR.

ALERT

You will only be able to view the API token once upon its creation. Store it in a secure location for future reference.

Creating a User

See Invite a user from Atlassian Support for instructions.

Setup Time Zone

  1. Login your Jira instance with the account that VSOC uses for authentication. Click your account icon on the top right corner, then click Manage account.

  2. Click Account Preferences on the left side, then under Time zone click the current time zone; in the dropdown list, select UTC. This account which VSOC uses to connect to your JIRA instance will use UTC as its time zone.

Configuring D3 SOAR to Work with Atlassian Jira Service Management

  1. Log in to D3 SOAR.

  2. Find the Atlassian Jira Service Management integration.

    1. Navigate to Configuration on the top header menu.

    2. Click on the Integration icon on the left sidebar.

    3. Type Atlassian Jira Service Management in the search box to find the integration, then click it to select it.

    4. Click New Connection, on the right side of the Connections section. A new connection window will appear.

  3. Configure the following fields to create a connection to Atlassian Jira Service Management.

    1. Connection Name: The desired name for the connection.

    2. Site: Specifies the site to use the integration connection. Use the drop-down menu to select the site. The Share to Internal Sites option enables all sites defined as internal sites to use the connection. Selecting a specific site will only enable that site to use the connection.

    3. Recipient site for events from connections Shared to Internal Sites: This field appears if you selected Share to Internal Sites for Site to let you select the internal site to deploy the integration connection.

    4. Agent Name (Optional): Specifies the proxy agent required to build the connection. Use the dropdown menu to select the proxy agent from a list of previously configured proxy agents.

    5. Description (Optional): Add your desired description for the connection.

    6. Configure User Permissions: Defines which users have access to the connection.

    7. Active: Check the tick box to ensure the connection is available for use.

  4. System: This section contains the parameters defined specifically for the integration. These parameters must be configured to create the integration connection.

Authentication Type: Basic Authentication

1. Select Basic Authentication.
2. Input the server URL of your Jira Service Management instance.

READER NOTE

If you do not know your server URL, log in to Atlassian Admin (https://admin.atlassian.com/) with admin credentials. A list of all organizations will appear. Select the desired organization to see the associated Atlassian products with their respective server URLs.

3. Input your user name.

4. Input your password.

Authentication Type: OAuth Authentication

1. Select OAuth Authentication.

2. Input the server URL of your Jira Service Management instance.

READER NOTE

If you do not know your server URL, log in to Atlassian Admin (https://admin.atlassian.com/) with admin credentials. A list of all organizations will appear. Select the desired organization to see the associated Atlassian products with their respective server URLs.

3. Input the saved Client ID (refer to step 11 of OAuth 2.0 Authentication).

4. Input the saved Client Secret (refer to step 11 of OAuth 2.0 Authentication).

5. Click Get Authorization. You will be directed to Atlassian’s access request page. Select the server to allow access, then click Accept. An authentication code will appear, but no further action is required.

6. Copy the D3 Callback URL, and paste it into Jira’s Authentication page (refer to step 10 of OAuth 2.0 Authentication).

7. Return to D3 SOAR. Click Get Refresh Token. The refresh token and authentication code will be automatically generated and entered into the corresponding parameters.

i. Connection Health Check: Updates the connection status you have created. A connection health check is done by scheduling the Test Connection command of this integration. This can only be done when the connection is active.

To set up a connection health check, check the Connection Health Check tickbox. You can customize the interval (minutes) for scheduling the health check. An email notification can be set up after a specified number of failed connection attempts.

j. Enable Password Vault: An optional feature that allows users to take the stored credentials from their own password vault. Please refer to the password vault connection guide if needed.

  1. Test the connection.

a. Click Test Connection to verify the account credentials and network connection. If the Test Connection Passed alert window appears, the test connection is successful. You will see Passed with a green checkmark appear beside the Test Connection button. If the test connection fails, please check your connection parameters and try again.

b. Click OK to close the alert window.

c. Click + Add to create and add the configured connection.

Commands

Atlassian Jira Service Management includes the following executable commands for users to set up schedules or create playbook workflows. With the Test Command, you can execute these commands independently for playbook troubleshooting.

Integration API Note

For more information about the Atlassian Jira Service Management, please refer to the Atlassian Jira Service Management API reference.

READER NOTE

Certain permissions are required for each command. Please refer to the Permission Requirements and Configuring Atlassian Jira Service Management to Work with D3 SOAR for details.

Note for Time-related parameters

The input format of time-related parameters may vary based on your account settings. As a result, the sample data provided in our commands is different from what you see. To set your preferred time format, follow these steps:

  1. Navigate to Configuration > Application Settings. Select Date/Time Format.

  2. Choose your desired date and time format.

After that, you will be able to view your preferred time format when configuring the DateTime input parameters for commands.

Create Request

Creates a new request in Jira Service Management.

READER NOTE

Service Desk ID and Request Type ID are required parameters to run this command.

  • Run the List Service Desk command to obtain the Service Desk ID. Service Desk IDs can be found in the returned raw data at the path $.value.[*].id.

  • Run the List Request Type command to obtain the Request Type ID. Request Type IDs can be found in the returned raw data at the path $.value.[*].id.

  • The input Service Desk ID and Request Type ID must correspond to each other. Run the List Request Type command with a Service Desk ID and check the returned corresponding Request Type ID.

Input

Input Parameter

Required/Optional

Description

Example

Service Desk ID

Required

The ID of the service desk in which to create a new request. You can obtain the Service Desk ID using the List Service Desk command.

1

Request Type ID

Required

The ID of the request type for the request. You can obtain the Request Type ID using the List Request Type command.

12

Request Field Values

Required

The JSON-formatted request field values. Request field values are a map of Jira field IDs and their values. See Field input formats (The Jira Service Management Cloud REST API), for details of each field's JSON semantics and the values they can take.

{

"summary": "Request ** **** *** ****",

"description": "I need a *** ***** *** ** Mac"

}

Output

Raw Data

The primary response data from the API request.

SAMPLE DATA

CODE
{
    "_expands": [
        "participant",
        "status",
        "sla",
        "requestType",
        "serviceDesk",
        "attachment",
        "action",
        "comment"
    ],
    "issueId": "10***",
    "issueKey": "IT******-**",
    "requestTypeId": "12",
    "serviceDeskId": "1",
    "createdDate": {
        "iso8601": "2022-12-07T21:26:25+0100",
        "jira": "2022-12-07T20:26:25.272+0000",
        "friendly": "Today 9:26 PM",
        "epochMillis": 16*********72
    },
    "reporter": {
        "accountId": "5e****************2d",
        "emailAddress": "******@d3security.com",
        "displayName": "D3 ****** ******** Team",
        "active": true,
        "timeZone": "CET",
        "_links": {
            "jiraRest": "https://team-**************.atlassian.net/****/***/*/***************=5e****************2d",
            "avatarUrls": {
                "48x48": "https://******.gravatar.com/******/*******************************************.png",
                "24x24": "https://******.gravatar.com/******/*******************************************.png",
                "16x16": "https://******.gravatar.com/******/*******************************************.png",
                "32x32": "https://******.gravatar.com/******/*******************************************.png"
            },
            "self": "https://team-**************.atlassian.net/****/***/*/***************=5e****************2d"
        }
    },
    "requestFieldValues": [
        {
            "fieldId": "*******",
            "label": "*******",
            "value": "Request ** **** *** ****"
        },
        {
            "fieldId": "de*******on",
            "label": "De*******on",
            "value": "I need a *** ***** *** ** Mac",
            "renderedValue": {
                "html": "<p>I need a *** ***** *** ** Mac</p>"
            }
        },
        {
            "fieldId": "attachment",
            "label": "Attachment",
            "value": []
        }
    ],
    "currentStatus": {
        "status": "Waiting for support",
        "statusCategory": "INDETERMINATE",
        "statusDate": {
            "iso8601": "2022-12-07T21:26:25+0100",
            "jira": "2022-12-07T20:26:25.272+0000",
            "friendly": "Today 9:26 PM",
            "epochMillis": 16*********72
        }
    },
    "_links": {
        "jiraRest": "https://team-**************.atlassian.net/**********************",
        "web": "https://team-**************.atlassian.net/***********/*******/******/*/IT******-**",
        "self": "https://team-**************.atlassian.net/****/*************/*******/10***",
        "agent": "https://team-**************.atlassian.net/******/IT******-**"
    }
}
Context Data

The data extracted from Raw Data converted into JSON format. Context Data may be identical to Raw Data in some cases.

It is recommended to refer to the Raw Data instead of Context Data, since it contains the complete API response data. D3 will deprecate Context Data in the future, and playbook tasks using Context Data will be replaced with Raw Data.

SAMPLE DATA

CODE
{
    "_expands": [
        "participant",
        "status",
        "sla",
        "requestType",
        "serviceDesk",
        "attachment",
        "action",
        "comment"
    ],
    "issueId": "10***",
    "issueKey": "IT******-**",
    "requestTypeId": "12",
    "serviceDeskId": "1",
    "createdDate": {
        "iso8601": "2022-12-07T21:26:25+0100",
        "jira": "2022-12-07T20:26:25.272+0000",
        "friendly": "Today 9:26 PM",
        "epochMillis": 16*********72
    },
    "reporter": {
        "accountId": "5e****************2d",
        "emailAddress": "******@d3security.com",
        "displayName": "D3 ****** ******** Team",
        "active": true,
        "timeZone": "CET",
        "_links": {
            "jiraRest": "https://team-**************.atlassian.net/****/***/*/***************=5e****************2d",
            "avatarUrls": {
                "48x48": "https://******.gravatar.com/******/*******************************************.png",
                "24x24": "https://******.gravatar.com/******/*******************************************.png",
                "16x16": "https://******.gravatar.com/******/*******************************************.png",
                "32x32": "https://******.gravatar.com/******/*******************************************.png"
            },
            "self": "https://team-**************.atlassian.net/****/***/*/***************=5e****************2d"
        }
    },
    "requestFieldValues": [
        {
            "fieldId": "summary",
            "label": "Summary",
            "value": "Request IT help via REST"
        },
        {
            "fieldId": "description",
            "label": "Description",
            "value": "I need a *** ***** *** ** Mac",
            "renderedValue": {
                "html": "&lt;p&gt;I need a *** ***** *** ** Mac&lt;/p&gt;"
            }
        },
        {
            "fieldId": "attachment",
            "label": "Attachment",
            "value": []
        }
    ],
    "currentStatus": {
        "status": "Waiting for support",
        "statusCategory": "INDETERMINATE",
        "statusDate": {
            "iso8601": "2022-12-07T21:26:25+0100",
            "jira": "2022-12-07T20:26:25.272+0000",
            "friendly": "Today 9:26 PM",
            "epochMillis": 16*********72
        }
    },
    "_links": {
        "jiraRest": "https://team-**************.atlassian.net/**********************",
        "web": "https://team-**************.atlassian.net/***********/*******/******/*/IT******-**",
        "self": "https://team-**************.atlassian.net/****/*************/*******/10***",
        "agent": "https://team-**************.atlassian.net/******/IT******-**"
    }
}
Return Data

Indicates one of the possible command execution states: Successful or Failed.

The Failed state can be triggered by any of the following errors:

  • A connection issue with the integration

  • The API returned an error message

  • No response from the API

You can view more details about an error in the Error tab.

Return Data can be passed down directly to a subsequent command or used to create conditional tasks in playbooks.

SAMPLE DATA

CODE
Successful
Result

Provides a brief summary of outputs in an HTML formatted table.

SAMPLE DATA

CODE
No Sample Data

Error Handling

If the Return Data is Failed, an Error tab will appear in the Test Result window.

The error tab contains the details responded from D3 SOAR or third-party API calls, including Failure Indicator, Status Code, and Message. This can help you locate the root cause of a command failure.

Parts in Error

Description

Example

Failure Indicator

Indicates the command failure that happened at a specific input and/or API call.

Create Request failed.

Status Code

The response code issued by the third-party API server or the D3 SOAR system that can be used to locate the corresponding error category. For example, if the returned status code is 401, the selected connection is unauthorized to run the command. The user or system support would need to check the permission setting in the Atlassian Jira Service Management portal. Refer to the HTTP Status Code Registry for details.

Status Code: 404.

Message

The raw data or captured key error message from the integration API server about the API request failure.

Message: The request type you are trying to view does not exist.

Error Sample Data

Create Request failed.

Status Code: 404.

Message: The request type you are trying to view does not exist.

Create Request Comment

Creates a public or private (internal) comment on a customer request, with the visibility set to public. The user will be recorded as the author of the comment. Attachment files can be added along with the comment.

READER NOTE

Issue ID Or Key is a required parameter to run this command.

  • Run the List Requests command to obtain Issuer ID or Key. Issuer ID or Key can be found in the raw data at the path $.values.[*].issueId or $.values.[*].issueKey.

File ID and File Source

It is not recommended to use the Test Command feature with the Submit Sample Files command as it is designed for dynamic input files in Playbooks, Incident Attachments, and Artifact Attachments. There is a simple workaround to test the command:

  1. In D3 SOAR, navigate to Configuration on the top bar menu.

  2. Click Utility Commands on the left sidebar menu.

  3. Use the search box to find and select the Create a File from input Text Array command.

  4. Select the Test tab, then input the required information for the parameters. Click Test Command.A D3 File ID will appear in the output data after the file has been successfully created. (Note: The D3 File Source of the created file will be Playbook File)

Input

Input Parameter

Required/Optional

Description

Example

Issue ID Or Key

Required

The ID or key of the customer request whose transitions will be retrieved. Issue ID Or Key can be obtained using List Requests command.

10***

Comment

Optional

The content of the comment.

Please **** *** ********** *** *** *** **** ********.

Public

Optional

Controls whether the comment and its attachments are visible to customers.

True

File IDs

Optional

The file path of the file source to be added to the customer request.

[ "750", "751" ]

File Source

Optional

The file source of the file to upload. The options for file sources are:

Incident Attachment File: Manually uploaded file from Incident

Playbook File: Output from another Task

Artifact File: Ingested Artifact in an Event

Playbook File

Output

Raw Data

The primary response data from the API request.

SAMPLE DATA

CODE
{
    "Result": {
        "comment": {
            "_expands": [
                "attachment",
                "renderedBody"
            ],
            "id": "1***",
            "body": "Please **** *** ********** *** *** *** **** ********. !sc********.png|thumbnail! [^log.txt] _(32 kB)_",
            "public": true,
            "author": {
                "accountId": "qm********************************************************",
                "name": "qm********************************************************",
                "key": "qm********************************************************",
                "emailAddress": "f***@example.com",
                "displayName": "F*** F. User",
                "active": true,
                "timeZone": "Australia/Sydney",
                "_links": {
                    "jiraRest": "https://your-domain.atlassian.net/****/***/*/*************************************************************************",
                    "avatarUrls": {
                        "16x16": "https://**********.atlassian.com/*****************?******************.gravatar.com*****************************************************",
                        "24x24": "https://**********.atlassian.com/*****************?******************.gravatar.com*****************************************************",
                        "32x32": "https://**********.atlassian.com/*****************?******************.gravatar.com*****************************************************,
                        "48x48": "https://**********.atlassian.com/*****************?******************.gravatar.com*****************************************************
                    },
                    "self": "https://your-domain.atlassian.net/****/***/*/*************************************************************************"
                }
            },
            "created": {
                "epochMillis": 14*********00,
                "friendly": "Today 10:22 AM",
                "iso8601": "2015-10-09T10:22:00+0700",
                "jira": "2015-10-09T10:22:00.000+0700"
            },
            "_links": {
                "self": "https://your-domain.atlassian.net/****/*************/*******/2000/comment/10***"
            }
        },
        "attachments": {
            "_expands": [],
            "size": 2,
            "start": 2,
            "limit": 2,
            "isLastPage": false,
            "_links": {
                "base": "https://your-domain.atlassian.net/****/**************",
                "context": "context",
                "next": "https://your-domain.atlassian.net/****/*************/*******/IT-15/comment/1001/attachment?start=4&limit=2",
                "prev": "https://your-domain.atlassian.net/****/*************/*******/IT-15/comment/1001/attachment?start=0&limit=2"
            },
            "values": [
                {
                    "filename": "sc********.png",
                    "temporaryAttachmentIDs": "temp*****************",
                    "author": {
                        "accountId": "qm********************************************************",
                        "name": "qm********************************************************",
                        "key": "qm********************************************************",
                        "emailAddress": "f***@example.com",
                        "displayName": "F*** *. ****",
                        "active": true,
                        "timeZone": "Australia/Sydney",
                        "_links": {
                            "jiraRest": "https://your-domain.atlassian.net/****/***/*/*************************************************************************",
                            "avatarUrls": {
                                "16x16": "https://**********.atlassian.com/*****************?******************.gravatar.com*****************************************************",
                                "24x24": "https://**********.atlassian.com/9b***************************c9?s=24&d=https%3A%2F%2Fsecure.gravatar.com%2F******%2F9b***************************c9%3Fd%3Dmm%26s%3D24%26noRedirect%3Dtrue",
                                "32x32": "https://**********.atlassian.com/9b***************************c9?s=32&d=https%3A%2F%2Fsecure.gravatar.com%2F******%2F9b***************************c9%3Fd%3Dmm%26s%3D32%26noRedirect%3Dtrue",
                                "48x48": "https://**********.atlassian.com/9b***************************c9?s=48&d=https%3A%2F%2Fsecure.gravatar.com%2F******%2F9b***************************c9%3Fd%3Dmm%26s%3D48%26noRedirect%3Dtrue"
                            },
                            "self": "https://your-domain.atlassian.net/****/***/*/*************************************************************************"
                        }
                    },
                    "created": {
                        "epochMillis": 14*********00,
                        "friendly": "Today 10:22 AM",
                        "iso8601": "2015-10-09T10:22:00+0700",
                        "jira": "2015-10-09T10:22:00.000+0700"
                    },
                    "size": 23123,
                    "mimeType": "image/png",
                    "_links": {
                        "jiraRest": "https://your-domain.atlassian.net/****/***/*/**********/*****",
                        "content": "https://your-domain.atlassian.net/***********/************/******/**********/*****/sc********.png",
                        "thumbnail": "https://your-domain.atlassian.net/***********/************/******/**********/*****/_th*********.png"
                    }
                },
                {
                    "filename": "log.txt",
                    "temporaryAttachmentIDs": "temp***********************",
                    "author": {
                        "accountId": "qm********************************************************",
                        "name": "qm********************************************************",
                        "key": "qm********************************************************",
                        "emailAddress": "f***@example.com",
                        "displayName": "F*** *. ****",
                        "active": true,
                        "timeZone": "Australia/Sydney",
                        "_links": {
                            "jiraRest": "https://your-domain.atlassian.net/****/***/*/*************************************************************************",
                            "avatarUrls": {
                                "16x16": "https://**********.atlassian.com/*****************?******************.gravatar.com*****************************************************",
                                "24x24": "https://**********.atlassian.com/9b***************************c9?s=24&d=https%3A%2F%2Fsecure.gravatar.com%2F******%2F9b***************************c9%3Fd%3Dmm%26s%3D24%26noRedirect%3Dtrue",
                                "32x32": "https://**********.atlassian.com/9b***************************c9?s=32&d=https%3A%2F%2Fsecure.gravatar.com%2F******%2F9b***************************c9%3Fd%3Dmm%26s%3D32%26noRedirect%3Dtrue",
                                "48x48": "https://**********.atlassian.com/9b***************************c9?s=48&d=https%3A%2F%2Fsecure.gravatar.com%2F******%2F9b***************************c9%3Fd%3Dmm%26s%3D48%26noRedirect%3Dtrue"
                            },
                            "self": "https://your-domain.atlassian.net/****/***/*/*************************************************************************"
                        }
                    },
                    "created": {
                        "epochMillis": 14*********00,
                        "friendly": "Today 10:22 AM",
                        "iso8601": "2015-10-09T10:22:00+0700",
                        "jira": "2015-10-09T10:22:00.000+0700"
                    },
                    "size": 32132,
                    "mimeType": "text/plain",
                    "_links": {
                        "jiraRest": "https://your-domain.atlassian.net/****/***/*/********/******",
                        "content": "https://your-domain.atlassian.net/***********/************/******/**********/*****/***.txt"
                    }
                }
            ]
        }
    }
}
Return Data

Indicates one of the possible command execution states: Successful, Partially Successful, or Failed.

The Partially Successful state only occurs when a command’s input accepts an array of items (e.g. an array of IP addresses) and one or more items within the array return an error from the API request.

The Failed state can be triggered by any of the following errors:

  • A connection issue with the integration

  • The API returned an error message

  • No response from the API

You can view more details about an error in the Error tab.

Return Data can be passed down directly to a subsequent command or used to create conditional tasks in playbooks.

SAMPLE DATA

CODE
Successful
Key Fields

Common cyber security indicators such as unique IDs, file hash values, CVE numbers, IP addresses, etc., will be extracted from Raw Data as Key Fields.

The system stores these key fields in the path $.[playbookTask].outputData. You can use these key-value pairs as data points for playbook task inputs.

SAMPLE DATA

CODE
{
      "CommentID": "10***", 
      "TemporaryAttachmentIDs": "temp*****************", "temp***********************",
      "FileNames": "bl****y.png", "la******se.jpg"
}
Result

Provides a brief summary of outputs in an HTML formatted table.

SAMPLE DATA

CODE
No Sample Data

Error Handling

If the Return Data is Partially Successful or Failed, an Error tab will appear in the Test Result window.

The error tab contains the details responded from D3 SOAR or third-party API calls, including Failure Indicator, Status Code, and Message. This can help you locate the root cause of a command failure.

Parts in Error

Description

Example

Failure Indicator

Indicates the command failure that happened at a specific input and/or API call.

Create Request Comment failed.

Status Code

The response code issued by the third-party API server or the D3 SOAR system that can be used to locate the corresponding error category. For example, if the returned status code is 401, the selected connection is unauthorized to run the command. The user or system support would need to check the permission setting in the Atlassian Jira Service Management portal. Refer to the HTTP Status Code Registry for details.

Status Code: 404.

Message

The raw data or captured key error message from the integration API server about the API request failure.

Message: Issue ID Or Key Not Found.

Error Sample Data

Create Request Comment failed.

Status Code: 404.

Message: Issue ID Or Key Not Found.

Get Request

Returns all requests from the specified issuer.

READER NOTE

Issuer ID or Key is an optional parameter to run this command.

  • Run the List Requests command to obtain Issuer ID or Key. Issuer ID or Key can be found in the raw data at the path $.values.[*].issueId or $.values.[*].issueKey.

  • If no input parameters are defined, all requests will be returned.

Input

Input Parameter

Required/Optional

Description

Example

Issuer ID or Key

Required

The ID or key of the issuer to return requests for. You can obtain the Issuer ID or Key using the List Requests command.

10020

Output

Raw Data

The primary response data from the API request.

SAMPLE DATA

CODE
{
    "_expands": [
        "participant",
        "status",
        "sla",
        "requestType",
        "serviceDesk",
        "attachment",
        "action",
        "comment"
    ],
    "issueId": "10***",
    "issueKey": "IT******-**",
    "requestTypeId": "12",
    "serviceDeskId": "1",
    "createdDate": {
        "iso8601": "2022-12-07T21:26:25+0100",
        "jira": "2022-12-07T20:26:25.272+0000",
        "friendly": "Today 9:26 PM",
        "epochMillis": 16*********72
    },
    "reporter": {
        "accountId": "5e****************2d",
        "emailAddress": "******@d3security.com",
        "displayName": "D3 ****** ******** Team",
        "active": true,
        "timeZone": "CET",
        "_links": {
            "jiraRest": "https://team-**************.atlassian.net/****/***/*/***************=5e****************2d",
            "avatarUrls": {
                "48x48": "https://******.gravatar.com/******/*******************************************.png",
                "24x24": "https://******.gravatar.com/******/*******************************************.png",
                "16x16": "https://******.gravatar.com/******/*******************************************.png",
                "32x32": "https://******.gravatar.com/******/*******************************************.png"
            },
            "self": "https://team-**************.atlassian.net/****/***/*/***************=5e****************2d"
        }
    },
    "requestFieldValues": [
        {
            "fieldId": "summary",
            "label": "Summary",
            "value": "Request ** **** *** ****"
        },
        {
            "fieldId": "description",
            "label": "Description",
            "value": "I need a *** ***** *** ** Mac",
            "renderedValue": {
                "html": "<p>I need a *** ***** *** ** Mac</p>"
            }
        },
        {
            "fieldId": "attachment",
            "label": "Attachment",
            "value": []
        }
    ],
    "currentStatus": {
        "status": "Waiting for support",
        "statusCategory": "INDETERMINATE",
        "statusDate": {
            "iso8601": "2022-12-07T21:26:25+0100",
            "jira": "2022-12-07T20:26:25.272+0000",
            "friendly": "Today 9:26 PM",
            "epochMillis": 16*********72
        }
    },
    "_links": {
        "jiraRest": "https://team-**************.atlassian.net/**********************",
        "web": "https://team-**************.atlassian.net/***********/*******/******/*/IT******-**",
        "self": "https://team-**************.atlassian.net/****/*************/*******/10***",
        "agent": "https://team-**************.atlassian.net/******/IT******-**"
    }
}
Context Data

The data extracted from Raw Data converted into JSON format. Context Data may be identical to Raw Data in some cases.

It is recommended to refer to the Raw Data instead of Context Data, since it contains the complete API response data. D3 will deprecate Context Data in the future, and playbook tasks using Context Data will be replaced with Raw Data.

SAMPLE DATA

CODE
No Sample Data
Return Data

Indicates one of the possible command execution states: Successful or Failed.

The Failed state can be triggered by any of the following errors:

  • A connection issue with the integration

  • The API returned an error message

  • No response from the API

You can view more details about an error in the Error tab.

Return Data can be passed down directly to a subsequent command or used to create conditional tasks in playbooks.

SAMPLE DATA

CODE
Successful
Result

Provides a brief summary of outputs in an HTML formatted table.

SAMPLE DATA

CODE
No Sample Data

Error Handling

If the Return Data is Failed, an Error tab will appear in the Test Result window.

The error tab contains the details responded from D3 SOAR or third-party API calls, including Failure Indicator, Status Code, and Message. This can help you locate the root cause of a command failure.

Parts in Error

Description

Example

Failure Indicator

Indicates the command failure that happened at a specific input and/or API call.

Get Request failed.

Status Code

The response code issued by the third-party API server or the D3 SOAR system that can be used to locate the corresponding error category. For example, if the returned status code is 401, the selected connection is unauthorized to run the command. The user or system support would need to check the permission setting in the Atlassian Jira Service Management portal. Refer to the HTTP Status Code Registry for details.

Status Code: 404.

Message

The raw data or captured key error message from the integration API server about the API request failure.

Message: Issuer ID or Key does not exist.

Error Sample Data

Get Request failed.

Status Code: 404.

Message: Issuer ID or Key does not exist.

Get Transitions

Returns a list of transitions that show users the actions they can take for each customer request. The command can take multiple requests and return transitions in a list. Note: "Show transition in the customer portal" must be selected for the transition to be retrieved by the customer.

READER NOTE

Issuer ID or Key is a required parameter to run this command.

  • Run the List Requests command to obtain Issuer ID or Key. Issuer ID or Keys can be found in the raw data at the path $.values.[*].issueId or $.values.[*].issueKey.

Input

Input Parameter

Required/Optional

Description

Example

Issuer ID or Key

Required

The IDs or keys of the customer request whose transitions will be retrieved. Issuer ID or Key can be obtained using List Requests command.

["10***", "10***"]

Output

Raw Data

The primary response data from the API request.

SAMPLE DATA

CODE
{
    "Results": [
        {
            "_expands": [],
            "issueIDOrKey": "10***",
            "size": 2,
            "start": 2,
            "limit": 2,
            "isLastPage": false,
            "_links": {
                "base": "https://your-domain.atlassian.net/****/**************",
                "context": "context",
                "next": "https://your-domain.atlassian.net/****/*************/*******/10***/transition?start=4&limit=2",
                "prev": "https://your-domain.atlassian.net/****/*************/*******/10***/transition?start=0&limit=2"
            },
            "values": [
                {
                    "id": "1",
                    "name": "Close Request"
                },
                {
                    "id": "2",
                    "name": "Escalate Request"
                }
            ]
        },
        {
            "_expands": [],
            "issueIDOrKey": "10***",
            "size": 2,
            "start": 2,
            "limit": 2,
            "isLastPage": false,
            "_links": {
                "base": "https://your-domain.atlassian.net/****/**************",
                "context": "context",
                "next": "https://your-domain.atlassian.net/****/*************/*******/10***/transition?start=4&limit=2",
                "prev": "https://your-domain.atlassian.net/****/*************/*******/10***/transition?start=0&limit=2"
            },
            "values": [
                {
                    "id": "1",
                    "name": "Close Request"
                },
                {
                    "id": "2",
                    "name": "Escalate Request"
                }
            ]
        }
    ]
}
Return Data

Indicates one of the possible command execution states: Successful, Partially Successful, or Failed.

The Partially Successful state only occurs when a command’s input accepts an array of items (e.g. an array of IP addresses) and one or more items within the array return an error from the API request.

The Failed state can be triggered by any of the following errors:

  • A connection issue with the integration

  • The API returned an error message

  • No response from the API

You can view more details about an error in the Error tab.

Return Data can be passed down directly to a subsequent command or used to create conditional tasks in playbooks.

SAMPLE DATA

CODE
Successful
Key Fields

Common cyber security indicators such as unique IDs, file hash values, CVE numbers, IP addresses, etc., will be extracted from Raw Data as Key Fields.

The system stores these key fields in the path $.[playbookTask].outputData. You can use these key-value pairs as data points for playbook task inputs.

SAMPLE DATA

CODE
{
    "issueIDOrKeys": "10***", "10***" 
}
Result

Provides a brief summary of outputs in an HTML formatted table.

SAMPLE DATA

CODE
No Sample Data

Error Handling

If the Return Data is Partially Successful or Failed, an Error tab will appear in the Test Result window.

The error tab contains the details responded from D3 SOAR or third-party API calls, including Failure Indicator, Status Code, and Message. This can help you locate the root cause of a command failure.

Parts in Error

Description

Example

Failure Indicator

Indicates the command failure that happened at a specific input and/or API call.

Get Transitions failed.

Status Code

The response code issued by the third-party API server or the D3 SOAR system that can be used to locate the corresponding error category. For example, if the returned status code is 401, the selected connection is unauthorized to run the command. The user or system support would need to check the permission setting in the Atlassian Jira Service Management portal. Refer to the HTTP Status Code Registry for details.

Status Code: 404.

Message

The raw data or captured key error message from the integration API server about the API request failure.

Message: Issuer ID or Key does not exist.

Error Sample Data

Get Transitions failed.

Status Code: 404.

Message: Issuer ID or Key does not exist.

List Requests

Returns a list of all requests.

Input

N/A

Output

Raw Data

The primary response data from the API request.

SAMPLE DATA

CODE
{
    "_expands": [
        "participant",
        "status",
        "sla",
        "requestType",
        "serviceDesk",
        "attachment",
        "action",
        "comment"
    ],
    "size": 3,
    "start": 0,
    "limit": 50,
    "isLastPage": true,
    "_links": {
        "self": "https://team-**************.atlassian.net/****/**************/request",
        "base": "https://team-**************.atlassian.net",
        "context": ""
    },
    "values": [
        {
            "_expands": [
                "participant",
                "status",
                "sla",
                "requestType",
                "serviceDesk",
                "attachment",
                "action",
                "comment"
            ],
            "issueId": "10***",
            "issueKey": "IT******-**",
            "requestTypeId": "12",
            "serviceDeskId": "1",
            "createdDate": {
                "iso8601": "2022-12-07T21:26:25+0100",
                "jira": "2022-12-07T20:26:25.272+0000",
                "friendly": "Today 9:26 PM",
                "epochMillis": 16*********72
            },
            "reporter": {
                "accountId": "5e****************2d",
                "emailAddress": "******@d3security.com",
                "displayName": "D3 ****** ******** Team",
                "active": true,
                "timeZone": "CET",
                "_links": {
                    "jiraRest": "https://team-**************.atlassian.net/****/***/*/***************=5e****************2d",
                    "avatarUrls": {
                        "48x48": "https://******.gravatar.com/******/*******************************************.png",
                        "24x24": "https://******.gravatar.com/******/*******************************************.png",
                        "16x16": "https://******.gravatar.com/******/*******************************************.png",
                        "32x32": "https://******.gravatar.com/******/*******************************************.png"
                    },
                    "self": "https://team-**************.atlassian.net/****/***/*/***************=5e****************2d"
                }
            },
            "requestFieldValues": [
                {
                    "fieldId": "summary",
                    "label": "Summary",
                    "value": "Request ** **** *** ****"
                },
                {
                    "fieldId": "description",
                    "label": "Description",
                    "value": "I need a *** ***** *** ** Mac",
                    "renderedValue": {
                        "html": "<p>I need a *** ***** *** ** Mac</p>"
                    }
                },
                {
                    "fieldId": "attachment",
                    "label": "Attachment",
                    "value": []
                }
            ],
            "currentStatus": {
                "status": "Waiting for support",
                "statusCategory": "INDETERMINATE",
                "statusDate": {
                    "iso8601": "2022-12-07T21:26:25+0100",
                    "jira": "2022-12-07T20:26:25.272+0000",
                    "friendly": "Today 9:26 PM",
                    "epochMillis": 16*********72
                }
            },
            "_links": {
                "jiraRest": "https://team-**************.atlassian.net/**********************",
                "web": "https://team-**************.atlassian.net/***********/*******/******/*/IT******-**",
                "self": "https://team-**************.atlassian.net/****/*************/*******/10***",
                "agent": "https://team-**************.atlassian.net/******/IT******-**"
            }
        },
        {
            "_expands": [
                "participant",
                "status",
                "sla",
                "requestType",
                "serviceDesk",
                "attachment",
                "action",
                "comment"
            ],
            "issueId": "10039",
            "issueKey": "IT******-17",
            "requestTypeId": "12",
            "serviceDeskId": "1",
            "createdDate": {
                "iso8601": "2022-12-07T21:01:42+0100",
                "jira": "2022-12-07T20:01:42.268+0000",
                "friendly": "Today 9:01 PM",
                "epochMillis": 16*********68
            },
            "reporter": {
                "accountId": "5e****************2d",
                "emailAddress": "******@d3security.com",
                "displayName": "D3 ****** ******** Team",
                "active": true,
                "timeZone": "CET",
                "_links": {
                    "jiraRest": "https://team-**************.atlassian.net/****/***/*/***************=5e****************2d",
                    "avatarUrls": {
                        "48x48": "https://******.gravatar.com/******/*******************************************.png",
                        "24x24": "https://******.gravatar.com/******/*******************************************.png",
                        "16x16": "https://******.gravatar.com/******/*******************************************.png",
                        "32x32": "https://******.gravatar.com/******/*******************************************.png"
                    },
                    "self": "https://team-**************.atlassian.net/****/***/*/***************=5e****************2d"
                }
            },
            "requestFieldValues": [
                {
                    "fieldId": "summary",
                    "label": "Summary",
                    "value": "Request IT help help via REST"
                },
                {
                    "fieldId": "description",
                    "label": "Description",
                    "value": "I need a *** ***** *** ** Mac",
                    "renderedValue": {
                        "html": "<p>I need a *** ***** *** ** Mac</p>"
                    }
                },
                {
                    "fieldId": "attachment",
                    "label": "Attachment",
                    "value": []
                }
            ],
            "currentStatus": {
                "status": "Waiting for support",
                "statusCategory": "INDETERMINATE",
                "statusDate": {
                    "iso8601": "2022-12-07T21:01:42+0100",
                    "jira": "2022-12-07T20:01:42.268+0000",
                    "friendly": "Today 9:01 PM",
                    "epochMillis": 16*********68
                }
            },
            "_links": {
                "jiraRest": "https://team-**************.atlassian.net/*******************039",
                "web": "https://team-**************.atlassian.net/***********/*******/******/*/IT******-17",
                "self": "https://team-**************.atlassian.net/****/*************/*******/10039",
                "agent": "https://team-**************.atlassian.net/******/IT******-17"
            }
        },
        {
            "_expands": [
                "participant",
                "status",
                "sla",
                "requestType",
                "serviceDesk",
                "attachment",
                "action",
                "comment"
            ],
            "issueId": "10***",
            "issueKey": "IT******-16",
            "requestTypeId": "1",
            "serviceDeskId": "1",
            "createdDate": {
                "iso8601": "2022-12-07T19:15:17+0100",
                "jira": "2022-12-07T18:15:17.156+0000",
                "friendly": "Today 7:15 PM",
                "epochMillis": 1670436917156
            },
            "reporter": {
                "accountId": "5e****************2d",
                "emailAddress": "******@d3security.com",
                "displayName": "D3 ****** ******** Team",
                "active": true,
                "timeZone": "CET",
                "_links": {
                    "jiraRest": "https://team-**************.atlassian.net/****/***/*/***************=5e****************2d",
                    "avatarUrls": {
                        "48x48": "https://******.gravatar.com/******/*******************************************.png",
                        "24x24": "https://******.gravatar.com/******/*******************************************.png",
                        "16x16": "https://******.gravatar.com/******/*******************************************.png",
                        "32x32": "https://******.gravatar.com/******/*******************************************.png"
                    },
                    "self": "https://team-**************.atlassian.net/****/***/*/***************=5e****************2d"
                }
            },
            "requestFieldValues": [
                {
                    "fieldId": "summary",
                    "label": "Summary",
                    "value": "Request *** help via ****"
                },
                {
                    "fieldId": "description",
                    "label": "Description",
                    "value": "I need a new *mouse* for my Mac",
                    "renderedValue": {
                        "html": "<p>I need a new <b>mouse</b> for my Mac</p>"
                    }
                },
                {
                    "fieldId": "attachment",
                    "label": "Attachment",
                    "value": []
                }
            ],
            "currentStatus": {
                "status": "Waiting for support",
                "statusCategory": "INDETERMINATE",
                "statusDate": {
                    "iso8601": "2022-12-07T19:15:17+0100",
                    "jira": "2022-12-07T18:15:17.156+0000",
                    "friendly": "Today 7:15 PM",
                    "epochMillis": 1670436917156
                }
            },
            "_links": {
                "jiraRest": "https://team-**************.atlassian.net/*******************038",
                "web": "https://team-**************.atlassian.net/***********/*******/******/*/IT******-16",
                "self": "https://team-**************.atlassian.net/****/*************/*******/10***",
                "agent": "https://team-**************.atlassian.net/******/IT******-16"
            }
        }
    ]
}
Context Data

The data extracted from Raw Data converted into JSON format. Context Data may be identical to Raw Data in some cases.

D3 customizes the Context Data by extracting the data from path $.values in API returned JSON.

It is recommended to refer to the Raw Data instead of Context Data, since it contains the complete API response data. D3 will deprecate Context Data in the future, and playbook tasks using Context Data will be replaced with Raw Data.

SAMPLE DATA

CODE
[
    {
        "_expands": [
            "participant",
            "status",
            "sla",
            "requestType",
            "serviceDesk",
            "attachment",
            "action",
            "comment"
        ],
        "issueId": "10***",
        "issueKey": "IT******-**",
        "requestTypeId": "12",
        "serviceDeskId": "1",
        "createdDate": {
            "iso8601": "2022-12-07T21:26:25+0100",
            "jira": "2022-12-07T20:26:25.272+0000",
            "friendly": "Today 9:26 PM",
            "epochMillis": 16*********72
        },
        "reporter": {
            "accountId": "5e****************2d",
            "emailAddress": "******@d3security.com",
            "displayName": "D3 ****** ******** Team",
            "active": true,
            "timeZone": "CET",
            "_links": {
                "jiraRest": "https://team-**************.atlassian.net/****/***/*/***************=5e****************2d",
                "avatarUrls": {
                    "48x48": "https://******.gravatar.com/******/*******************************************.png",
                    "24x24": "https://******.gravatar.com/******/*******************************************.png",
                    "16x16": "https://******.gravatar.com/******/*******************************************.png",
                    "32x32": "https://******.gravatar.com/******/*******************************************.png"
                },
                "self": "https://team-**************.atlassian.net/****/***/*/***************=5e****************2d"
            }
        },
        "requestFieldValues": [
            {
                "fieldId": "summary",
                "label": "Summary",
                "value": "Request ** **** *** ****"
            },
            {
                "fieldId": "description",
                "label": "Description",
                "value": "I need a *** ***** *** ** Mac",
                "renderedValue": {
                    "html": "&lt;p&gt;I need a *** ***** *** ** Mac&lt;/p&gt;"
                }
            },
            {
                "fieldId": "attachment",
                "label": "Attachment",
                "value": []
            }
        ],
        "currentStatus": {
            "status": "Waiting for support",
            "statusCategory": "INDETERMINATE",
            "statusDate": {
                "iso8601": "2022-12-07T21:26:25+0100",
                "jira": "2022-12-07T20:26:25.272+0000",
                "friendly": "Today 9:26 PM",
                "epochMillis": 16*********72
            }
        },
        "_links": {
            "jiraRest": "https://team-**************.atlassian.net/**********************",
            "web": "https://team-**************.atlassian.net/***********/*******/******/*/IT******-**",
            "self": "https://team-**************.atlassian.net/****/*************/*******/10***",
            "agent": "https://team-**************.atlassian.net/******/IT******-**"
        }
    },
    {
        "_expands": [
            "participant",
            "status",
            "sla",
            "requestType",
            "serviceDesk",
            "attachment",
            "action",
            "comment"
        ],
        "issueId": "10039",
        "issueKey": "IT******-17",
        "requestTypeId": "12",
        "serviceDeskId": "1",
        "createdDate": {
            "iso8601": "2022-12-07T21:01:42+0100",
            "jira": "2022-12-07T20:01:42.268+0000",
            "friendly": "Today 9:01 PM",
            "epochMillis": 16*********68
        },
        "reporter": {
            "accountId": "5e****************2d",
            "emailAddress": "******@d3security.com",
            "displayName": "D3 ****** ******** Team",
            "active": true,
            "timeZone": "CET",
            "_links": {
                "jiraRest": "https://team-**************.atlassian.net/****/***/*/***************=5e****************2d",
                "avatarUrls": {
                    "48x48": "https://******.gravatar.com/******/*******************************************.png",
                    "24x24": "https://******.gravatar.com/******/*******************************************.png",
                    "16x16": "https://******.gravatar.com/******/*******************************************.png",
                    "32x32": "https://******.gravatar.com/******/*******************************************.png"
                },
                "self": "https://team-**************.atlassian.net/****/***/*/***************=5e****************2d"
            }
        },
        "requestFieldValues": [
            {
                "fieldId": "summary",
                "label": "Summary",
                "value": "Request IT help help via REST"
            },
            {
                "fieldId": "description",
                "label": "Description",
                "value": "I need a *** ***** *** ** Mac",
                "renderedValue": {
                    "html": "&lt;p&gt;I need a *** ***** *** ** Mac&lt;/p&gt;"
                }
            },
            {
                "fieldId": "attachment",
                "label": "Attachment",
                "value": []
            }
        ],
        "currentStatus": {
            "status": "Waiting for support",
            "statusCategory": "INDETERMINATE",
            "statusDate": {
                "iso8601": "2022-12-07T21:01:42+0100",
                "jira": "2022-12-07T20:01:42.268+0000",
                "friendly": "Today 9:01 PM",
                "epochMillis": 16*********68
            }
        },
        "_links": {
            "jiraRest": "https://team-**************.atlassian.net/*******************039",
            "web": "https://team-**************.atlassian.net/***********/*******/******/*/IT******-17",
            "self": "https://team-**************.atlassian.net/****/*************/*******/10039",
            "agent": "https://team-**************.atlassian.net/******/IT******-17"
        }
    },
    {
        "_expands": [
            "participant",
            "status",
            "sla",
            "requestType",
            "serviceDesk",
            "attachment",
            "action",
            "comment"
        ],
        "issueId": "10***",
        "issueKey": "IT******-16",
        "requestTypeId": "1",
        "serviceDeskId": "1",
        "createdDate": {
            "iso8601": "2022-12-07T19:15:17+0100",
            "jira": "2022-12-07T18:15:17.156+0000",
            "friendly": "Today 7:15 PM",
            "epochMillis": 1670436917156
        },
        "reporter": {
            "accountId": "5e****************2d",
            "emailAddress": "******@d3security.com",
            "displayName": "D3 ****** ******** Team",
            "active": true,
            "timeZone": "CET",
            "_links": {
                "jiraRest": "https://team-**************.atlassian.net/****/***/*/***************=5e****************2d",
                "avatarUrls": {
                    "48x48": "https://******.gravatar.com/******/*******************************************.png",
                    "24x24": "https://******.gravatar.com/******/*******************************************.png",
                    "16x16": "https://******.gravatar.com/******/*******************************************.png",
                    "32x32": "https://******.gravatar.com/******/*******************************************.png"
                },
                "self": "https://team-**************.atlassian.net/****/***/*/***************=5e****************2d"
            }
        },
        "requestFieldValues": [
            {
                "fieldId": "summary",
                "label": "Summary",
                "value": "Request *** help via ****"
            },
            {
                "fieldId": "description",
                "label": "Description",
                "value": "I need a new *mouse* for my Mac",
                "renderedValue": {
                    "html": "&lt;p&gt;I need a new &lt;b&gt;mouse&lt;/b&gt; for my Mac&lt;/p&gt;"
                }
            },
            {
                "fieldId": "attachment",
                "label": "Attachment",
                "value": []
            }
        ],
        "currentStatus": {
            "status": "Waiting for support",
            "statusCategory": "INDETERMINATE",
            "statusDate": {
                "iso8601": "2022-12-07T19:15:17+0100",
                "jira": "2022-12-07T18:15:17.156+0000",
                "friendly": "Today 7:15 PM",
                "epochMillis": 1670436917156
            }
        },
        "_links": {
            "jiraRest": "https://team-**************.atlassian.net/*******************038",
            "web": "https://team-**************.atlassian.net/***********/*******/******/*/IT******-16",
            "self": "https://team-**************.atlassian.net/****/*************/*******/10***",
            "agent": "https://team-**************.atlassian.net/******/IT******-16"
        }
    }
]
Return Data

Indicates one of the possible command execution states: Successful or Failed.

The Failed state can be triggered by any of the following errors:

  • A connection issue with the integration

  • The API returned an error message

  • No response from the API

You can view more details about an error in the Error tab.

Return Data can be passed down directly to a subsequent command or used to create conditional tasks in playbooks.

SAMPLE DATA

CODE
Successful
Result

Provides a brief summary of outputs in an HTML formatted table.

SAMPLE DATA

CODE
No Sample Data

Error Handling

If the Return Data is Failed, an Error tab will appear in the Test Result window.

The error tab contains the details responded from D3 SOAR or third-party API calls, including Failure Indicator, Status Code, and Message. This can help you locate the root cause of a command failure.

Parts in Error

Description

Example

Failure Indicator

Indicates the command failure that happened at a specific input and/or API call.

List Requests failed.

Status Code

The response code issued by the third-party API server or the D3 SOAR system that can be used to locate the corresponding error category. For example, if the returned status code is 401, the selected connection is unauthorized to run the command. The user or system support would need to check the permission setting in the Atlassian Jira Service Management portal. Refer to the HTTP Status Code Registry for details.

Status Code: 403.

Message

The raw data or captured key error message from the integration API server about the API request failure.

Message: serverurl is invalid because it contains potentially dangerous HTML markup or JavaScript code.

Error Sample Data

List Requests failed.

Status Code: 403.

Message: serverurl is invalid because it contains potentially dangerous HTML markup or JavaScript code.

List Request Type

Retrieves all customer request types from a service desk.

READER NOTE

Service Desk ID is a required parameter to run this command.

  • Run the List Service Desk command to obtain the Service Desk ID. Service Desk IDs can be found in the returned raw data at the path $.value.[*].id.

Input

Input Parameter

Required/Optional

Description

Example

Service Desk ID

Required

The ID of the service desk to retrieve customer request types. You can obtain the Service Desk ID using the List Service Desk command.

1

Output

Raw Data

The primary response data from the API request.

SAMPLE DATA

CODE
{
    "_expands": [
        "field"
    ],
    "size": 16,
    "start": 0,
    "limit": 50,
    "isLastPage": true,
    "_links": {
        "self": "https://team-**************.atlassian.net/****/**************/***********/1/requesttype",
        "base": "https://team-**************.atlassian.net",
        "context": ""
    },
    "values": [
        {
            "_expands": [
                "field"
            ],
            "id": "12",
            "_links": {
                "self": "https://team-**************.atlassian.net/****/**************/***********/*/***********/12"
            },
            "name": "Fix ** ******* *******",
            "description": "Having ******* ********* ******* ******** ** *******? We'll **** *** ***.",
            "helpText": "",
            "issueTypeId": "10***",
            "serviceDeskId": "1",
            "portalId": "1",
            "groupIds": [
                "3"
            ],
            "icon": {
                "id": "10***",
                "_links": {
                    "iconUrls": {
                        "48x48": "https://team-**************.atlassian.net/****/***/*/*********_******/****/****/**_*******/******/10***?size=large",
                        "24x24": "https://team-**************.atlassian.net/****/***/*/*********_******/****/****/**_*******/******/10***?size=small",
                        "16x16": "https://team-**************.atlassian.net/****/***/*/*********_******/****/****/**_*******/******/10***?size=xsmall",
                        "32x32": "https://team-**************.atlassian.net/****/***/*/*********_******/****/****/**_*******/******/10***?size=medium"
                    }
                }
            }
        },
        {
            "_expands": [
                "field"
            ],
            "id": "13",
            "_links": {
                "self": "https://team-**************.atlassian.net/****/**************/***********/*/***********/13"
            },
            "name": "Get * ***** **** *******",
            "description": "Raise * ******* ** *** *** **** **** ****** *** *******.",
            "helpText": "",
            "issueTypeId": "10***",
            "serviceDeskId": "1",
            "portalId": "1",
            "groupIds": [
                "3"
            ],
            "icon": {
                "id": "10***",
                "_links": {
                    "iconUrls": {
                        "48x48": "https://team-**************.atlassian.net/****/***/*/*********_******/****/****/**_*******/******/10***?size=large",
                        "24x24": "https://team-**************.atlassian.net/****/***/*/*********_******/****/****/**_*******/******/10***?size=small",
                        "16x16": "https://team-**************.atlassian.net/****/***/*/*********_******/****/****/**_*******/******/10***?size=xsmall",
                        "32x32": "https://team-**************.atlassian.net/****/***/*/*********_******/****/****/**_*******/******/10***?size=medium"
                    }
                }
            }
        },
        {
            "_expands": [
                "field"
            ],
            "id": "1",
            "_links": {
                "self": "https://team-**************.atlassian.net/****/**************/***********/*/***********/1"
            },
            "name": "Get ** ****",
            "description": "Get ********** *** ******* ** ******** *** *********.",
            "helpText": "",
            "issueTypeId": "10***",
            "serviceDeskId": "1",
            "portalId": "1",
            "groupIds": [
                "1",
                "2"
            ],
            "icon": {
                "id": "10***",
                "_links": {
                    "iconUrls": {
                        "48x48": "https://team-**************.atlassian.net/****/***/*/*********_******/****/****/**_*******/******/10***?size=large",
                        "24x24": "https://team-**************.atlassian.net/****/***/*/*********_******/****/****/**_*******/******/10***?size=small",
                        "16x16": "https://team-**************.atlassian.net/****/***/*/*********_******/****/****/**_*******/******/10***?size=xsmall",
                        "32x32": "https://team-**************.atlassian.net/****/***/*/*********_******/****/****/**_*******/******/10***?size=medium"
                    }
                }
            }
        }
    ]
}
Context Data

The data extracted from Raw Data converted into JSON format. Context Data may be identical to Raw Data in some cases.

D3 customizes the Context Data by extracting the data from path $.values in API returned JSON.

It is recommended to refer to the Raw Data instead of Context Data, since it contains the complete API response data. D3 will deprecate Context Data in the future, and playbook tasks using Context Data will be replaced with Raw Data.

SAMPLE DATA

CODE
[
    {
        "_expands": [
            "field"
        ],
        "id": "12",
        "_links": {
            "self": "https://team-**************.atlassian.net/****/**************/***********/*/***********/12"
        },
        "name": "Fix ** ******* *******",
        "description": "Having trouble ********* ******* ******** ** *******? We'll **** *** ***.",
        "helpText": "",
        "issueTypeId": "10***",
        "serviceDeskId": "1",
        "portalId": "1",
        "groupIds": [
            "3"
        ],
        "icon": {
            "id": "10***",
            "_links": {
                "iconUrls": {
                    "48x48": "https://team-**************.atlassian.net/****/***/*/*********_******/****/****/**_*******/******/10***?size=large",
                    "24x24": "https://team-**************.atlassian.net/****/***/*/*********_******/****/****/**_*******/******/10***?size=small",
                    "16x16": "https://team-**************.atlassian.net/****/***/*/*********_******/****/****/**_*******/******/10***?size=xsmall",
                    "32x32": "https://team-**************.atlassian.net/****/***/*/*********_******/****/****/**_*******/******/10***?size=medium"
                }
            }
        }
    },
    {
        "_expands": [
            "field"
        ],
        "id": "13",
        "_links": {
            "self": "https://team-**************.atlassian.net/****/**************/***********/*/***********/13"
        },
        "name": "Get * ***** **** *******",
        "description": "Raise * ******* ** *** *** **** **** ****** *** *******.",
        "helpText": "",
        "issueTypeId": "10***",
        "serviceDeskId": "1",
        "portalId": "1",
        "groupIds": [
            "3"
        ],
        "icon": {
            "id": "10***",
            "_links": {
                "iconUrls": {
                    "48x48": "https://team-**************.atlassian.net/****/***/*/*********_******/****/****/**_*******/******/10***?size=large",
                    "24x24": "https://team-**************.atlassian.net/****/***/*/*********_******/****/****/**_*******/******/10***?size=small",
                    "16x16": "https://team-**************.atlassian.net/****/***/*/*********_******/****/****/**_*******/******/10***?size=xsmall",
                    "32x32": "https://team-**************.atlassian.net/****/***/*/*********_******/****/****/**_*******/******/10***?size=medium"
                }
            }
        }
    },
    {
        "_expands": [
            "field"
        ],
        "id": "1",
        "_links": {
            "self": "https://team-**************.atlassian.net/****/**************/***********/*/***********/1"
        },
        "name": "Get ** ****",
        "description": "Get ********** *** ******* ** ******** *** *********.",
        "helpText": "",
        "issueTypeId": "10***",
        "serviceDeskId": "1",
        "portalId": "1",
        "groupIds": [
            "1",
            "2"
        ],
        "icon": {
            "id": "10***",
            "_links": {
                "iconUrls": {
                    "48x48": "https://team-**************.atlassian.net/****/***/*/*********_******/****/****/**_*******/******/10***?size=large",
                    "24x24": "https://team-**************.atlassian.net/****/***/*/*********_******/****/****/**_*******/******/10***?size=small",
                    "16x16": "https://team-**************.atlassian.net/****/***/*/*********_******/****/****/**_*******/******/10***?size=xsmall",
                    "32x32": "https://team-**************.atlassian.net/****/***/*/*********_******/****/****/**_*******/******/10***?size=medium"
                }
            }
        }
    }
]
Return Data

Indicates one of the possible command execution states: Successful or Failed.

The Failed state can be triggered by any of the following errors:

  • A connection issue with the integration

  • The API returned an error message

  • No response from the API

You can view more details about an error in the Error tab.

Return Data can be passed down directly to a subsequent command or used to create conditional tasks in playbooks.

SAMPLE DATA

CODE
Successful
Result

Provides a brief summary of outputs in an HTML formatted table.

SAMPLE DATA

CODE
No Sample Data

Error Handling

If the Return Data is Failed, an Error tab will appear in the Test Result window.

The error tab contains the details responded from D3 SOAR or third-party API calls, including Failure Indicator, Status Code, and Message. This can help you locate the root cause of a command failure.

Parts in Error

Description

Example

Failure Indicator

Indicates the command failure that happened at a specific input and/or API call.

List Request Type failed.

Status Code

The response code issued by the third-party API server or the D3 SOAR system that can be used to locate the corresponding error category. For example, if the returned status code is 401, the selected connection is unauthorized to run the command. The user or system support would need to check the permission setting in the Atlassian Jira Service Management portal. Refer to the HTTP Status Code Registry for details.

Status Code: 404.

Message

The raw data or captured key error message from the integration API server about the API request failure.

Message: Service Desk ID Not Found.

Error Sample Data

List Request Type failed.

Status Code: 404.

Message: Service Desk ID Not Found.

List Service Desk

Retrieves all service desks in the Jira Service Management instance. The scope of this command is defined by the access rights of the user account that was used to set up the integration connection.

Input

N/A

Output

Raw Data

The primary response data from the API request.

SAMPLE DATA

CODE
{
    "size": 2,
    "start": 0,
    "limit": 50,
    "isLastPage": true,
    "_links": {
        "self": "https://team-**************.atlassian.net/****/**************/***********",
        "base": "https://team-**************.atlassian.net",
        "context": ""
    },
    "values": [
        {
            "id": "2",
            "projectId": "10***",
            "projectName": "IT** *******-A",
            "projectKey": "I*",
            "_links": {
                "self": "https://team-**************.atlassian.net/****/**************/***********/2"
            }
        },
        {
            "id": "1",
            "projectId": "10***",
            "projectName": "IT** ****** *****",
            "projectKey": "IT******",
            "_links": {
                "self": "https://team-**************.atlassian.net/****/**************/***********/1"
            }
        }
    ]
}
Context Data

The data extracted from Raw Data converted into JSON format. Context Data may be identical to Raw Data in some cases.

D3 customizes the Context Data by extracting the data from path $.values in API returned JSON.

It is recommended to refer to the Raw Data instead of Context Data, since it contains the complete API response data. D3 will deprecate Context Data in the future, and playbook tasks using Context Data will be replaced with Raw Data.

SAMPLE DATA

CODE
[
    {
        "id": "2",
        "projectId": "10***",
        "projectName": "IT** *******-A",
        "projectKey": "I*",
        "_links": {
            "self": "https://team-**************.atlassian.net/****/**************/***********/2"
        }
    },
    {
        "id": "1",
        "projectId": "10***",
        "projectName": "IT** ****** *****",
        "projectKey": "IT******",
        "_links": {
            "self": "https://team-**************.atlassian.net/****/**************/***********/1"
        }
    }
]
Return Data

Indicates one of the possible command execution states: Successful or Failed.

The Failed state can be triggered by any of the following errors:

  • A connection issue with the integration

  • The API returned an error message

  • No response from the API

You can view more details about an error in the Error tab.

Return Data can be passed down directly to a subsequent command or used to create conditional tasks in playbooks.

SAMPLE DATA

CODE
Successful
Result

Provides a brief summary of outputs in an HTML formatted table.

SAMPLE DATA

CODE
No Sample Data

Error Handling

If the Return Data is Failed, an Error tab will appear in the Test Result window.

The error tab contains the details responded from D3 SOAR or third-party API calls, including Failure Indicator, Status Code, and Message. This can help you locate the root cause of a command failure.

Parts in Error

Description

Example

Failure Indicator

Indicates the command failure that happened at a specific input and/or API call.

List Service Desk failed.

Status Code

The response code issued by the third-party API server or the D3 SOAR system that can be used to locate the corresponding error category. For example, if the returned status code is 401, the selected connection is unauthorized to run the command. The user or system support would need to check the permission setting in the Atlassian Jira Service Management portal. Refer to the HTTP Status Code Registry for details.

Status Code: 403.

Message

The raw data or captured key error message from the integration API server about the API request failure.

Message: serverurl is invalid because it contains potentially dangerous HTML markup or JavaScript code

Error Sample Data

List Service Desk failed.

Status Code: 403.

Message: serverurl is invalid because it contains potentially dangerous HTML markup or JavaScript code

Perform Transition

Performs a customer transition for a given request and transition.

READER NOTE

Issue ID Or Key and Transition ID are required parameters to run this command.

  • Run the List Requests command to obtain Issuer ID Or Key. Issuer ID or Keys can be found in the raw data at the path $.values.[*].issueId or $.values.[*].issueKey.

  • Run the Get Transitions command to obtain Transition IDs. Transition IDs can be found in the returned raw data at the path $.Results[*].values[*].

Input

Input Parameter

Required/Optional

Description

Example

Issue ID Or Key

Required

The ID or key of the request whose transitions will be retrieved. Issuer ID or Key can be obtained using List Requests command.

10***

Transition ID

Required

The ID of the transition to be performed. Transition IDs can be obtained using the Get Transitions Command.

1

Comment

Optional

The comment explaining the reason for the transition.

Problem has been fixed.

Output

Raw Data

The primary response data from the API request.

SAMPLE DATA

CODE
No Sample Data
Context Data

The data extracted from Raw Data converted into JSON format. Context Data may be identical to Raw Data in some cases.

It is recommended to refer to the Raw Data instead of Context Data, since it contains the complete API response data. D3 will deprecate Context Data in the future, and playbook tasks using Context Data will be replaced with Raw Data.

SAMPLE DATA

CODE
No Sample Data
Return Data

Indicates one of the possible command execution states: Successful or Failed.

The Failed state can be triggered by any of the following errors:

  • A connection issue with the integration

  • The API returned an error message

  • No response from the API

You can view more details about an error in the Error tab.

Return Data can be passed down directly to a subsequent command or used to create conditional tasks in playbooks.

SAMPLE DATA

CODE
Successful
Result

Provides a brief summary of outputs in an HTML formatted table.

SAMPLE DATA

CODE
No Sample Data

Error Handling

If the Return Data is Failed, an Error tab will appear in the Test Result window.

The error tab contains the details responded from D3 SOAR or third-party API calls, including Failure Indicator, Status Code, and Message. This can help you locate the root cause of a command failure.

Parts in Error

Description

Example

Failure Indicator

Indicates the command failure that happened at a specific input and/or API call.

Perform Transition failed.

Status Code

The response code issued by the third-party API server or the D3 SOAR system that can be used to locate the corresponding error category. For example, if the returned status code is 401, the selected connection is unauthorized to run the command. The user or system support would need to check the permission setting in the Atlassian Jira Service Management portal. Refer to the HTTP Status Code Registry for details.

Status Code: 404.

Message

The raw data or captured key error message from the integration API server about the API request failure.

Message: Issue ID Or Key Not Found.

Error Sample Data

Perform Transition failed.

Status Code: 404.

Message: Issue ID Or Key Not Found.

Test Connection

Allows you to perform a health check on an integration connection. You can schedule a periodic health check by selecting Connection Health Check when editing an integration connection.

Input

N/A

Output

Return Data

Indicates one of the possible command execution states: Successful or Failed.

The Failed state can be triggered by any of the following errors:

  • A connection issue with the integration

  • The API returned an error message

  • No response from the API

You can view more details about an error in the Error tab.

Return Data can be passed down directly to a subsequent command or used to create conditional tasks in playbooks.

SAMPLE DATA

CODE
Successful

Error Handling

If the Return Data is Failed, an Error tab will appear in the Test Result window.

The error tab contains the responses from the third-party API calls including Failure Indicator, Status Code, and Message. This can help you locate the root cause of a command failure.

Parts in Error

Description

Example

Failure Indicator

Indicates the command failure that happened at a specific input and/or API call.

Test Connection failed. Failed to check the connector.

Status Code

The response code issued by the third-party API server or the D3 SOAR system that can be used to locate the corresponding error category. For example, if the returned status code is 401, the selected connection is unauthorized to run the command. The user or system support would need to check the permission setting in the Atlassian Jira Service Management portal. Refer to the HTTP Status Code Registry for details.

Status Code: 403.

Message

The raw data or captured key error message from the integration API server about the API request failure.

Message: serverurl is invalid because it contains potentially dangerous HTML markup or JavaScript code.

Error Sample Data

Test Connection failed. Failed to check the connector.

Status Code: 403.

Message: serverurl is invalid because it contains potentially dangerous HTML markup or JavaScript code.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.