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

Compare with Current View Page History

« Previous Version 10 Next »

On this page

Use case

In this use case we will automatically set the assignee of the external linked issue by putting the same value as in the transitioned issue. Afterwards, we will add in a comment the status of the operation response.

Prerequisites

For this use case we need a Connection communicating to the external Jira instance and an Action for executing the update Jira issue operation.

Create a connection

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

Name

External Jira instance

Connection type

Choose External.

Base url

http://JIRA_BASE_URL

Authentication

Choose Basic.

Set username.

admin

Set passoword.

admin_password
Create an action

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

Name

Update issue

Method

Choose PUT.

Default connection

Choose External Jira instance.

REST path


/rest/api/2/issue/{issueIdOrKey}

Parameters

issueIdOrKey

It is the key or Id of the issue in the external Jira instance we want to update. In this case we consider it to be the first linked issue.

toString(nthElement(linkedIssues(), 1))

JSON body

It is the rest body required for making the REST call:

{"update": {
        "assignee": [
            {
                "set": {
                "id": "admin",
                "displayName":"admin",
                "name": "admin"
                }
            }
        ]
     }
 }

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 Update issue.

Select connection

The default connection of the selected action should be preselected, which is the External Jira instance.

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.