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

Compare with Current View Page History

« Previous Version 9 Next »

On this page

Use case

In this use case we will get the information from a Trello card and add it in a comment inside the transitioned issue. Moreover, we will save also the link of the Trello card in the Description field.

Prerequisites

For this use case we need a Connection for communication with Trello and an Action for executing the GET Trello card operation.

Create a connection

Configure the connection either inside the post function configuration or in the Connector app by setting the following input.

Name

Trello

Connection type

Choose External.

Base URL

https://api.trello.com

Authentication

Trello's API uses token-based authentication to grant third-party applications access to the Trello API. Refer to authentication setup page for creating the needed API key and API token (query parameters).

Choose No authentication.

Create an action

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

Name

Get Trello card

Method

Choose GET.

Default connection

The default connection of the selected action should be preselected, which is Trello.

REST path


/1/cards/{cardId}?{key}&{token}

Parameters

cardId

It is the ID of the card.

^[0-9a-fA-F]{24}$

key

It is a generated API key under Trello API key page.

token

It is a generated API token by using the previous key in the following URL:

https://trello.com/1/authorize?expiration=1day&name=MyPersonalToken&scope=read&response_type=token&key={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 Trello card.

Select connection

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

Update issue fields (optional)

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

Set the Card description inside a comment in the transitioned issue.

Select the field to be set.

Choose New comment.

Set the value.

Set it manually using the expression editor as follows:

%{action.response.desc}



Set the Card url inside the description field in the transitioned issue.

Select the field to be set.

Choose Description.

Set the value.

Set it manually using the expression editor as follows:

%{action.response.url}






Related use cases


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