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

Compare with Current View Page History

« Previous Version 4 Next »

On this page

Use case

In this use case we will get the insight object entries of a Jira Cloud issue and write the respective object labels to a custom text field.

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.

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

iql stands for "insight query language" and is the way how to determine which objects 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 the text custom field to hold the object entry labels.

Set the value.

Choose List of object labels.






Related use cases


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