You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

On this page

Use case

In this use case we will get the insight object entries of a Jira Cloud isssue and afterwards add them in a comment.

Prerequisites

For this use case we need an Action for executing the get Insight object entries operation. It should be executed in a Jira cloud instance using the current instance connection.

Create the action either inside the post function configuration or in the Connector app by setting the following input.
Create an action

Name

Get insight object entries

Method

Choose GET.

Default connection

Choose Current instance.

REST path


/jsm/insight/workspace/{workspaceId}/v1/iql/objects?{iql}

Parameters

workspaceId

The workspaceId is used to identify your individual instance of Insight. It is retrieved through the following endpoint: https://SITE_NAME.atlassian.net/rest/servicedeskapi/insight/workspace.


iql

The iql stands for "insight query language" and it is the query to determine which objects that should be fetched. In this case we want to get all the objects related to the transitioned issue.

object HAVING connectedTickets(key = %{issue.key})

Configuration

Add the Execute remote action post function to the desired transition or create a new transition.

Select action

Choose the previous created action which we named Get insight object entries.

Select connection

It is automatically preselected with the default connection value of the selected action.

Storing results

Other default options like Response body, Response status or Set field value manually are available in any mode in the post function.

Select the field to be set.

Choose New comment.

Set the value.

Choose Response status.






Related use cases


If you still have questions, feel free to refer to our support team.