When a field is updated an issue must be created
Asked by Andr? Felipe Rodrigues Lopes:

I have two instances in Jira, in my instance #1 I need to update a field, and every time this field is updated a new issue needs to be created in my instance #2, I tried a few ways including using the send web request. Does anyone have any idea how to do this?


Answers:
author: Matthias Gaiser _K15t_
body: Hey [@Andr? Felipe Rodrigues Lopes](/t5/user/viewprofilepage/user-id/4734299)

if you only want to create the issue in the other instance, I'd also recommend using a Jira automation with a web request.

With the web request, you need to call the [create issue endpoint](https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issues/#api-rest-api-3-issue-post) of the other instance. Here are some simple details you can use:

* **Web request URL** : <https://YOURDOMAIN.atlassian.net/rest/api/2/issue>
* **HTTP method**: POST
* **Web request body**: Custom data
* **Custom data** : Here goes the actual payload with all the data about the new issue to create. As an example, this request creates a Task in the project PROJECTKEY with the summary "create test"  

  ```
  {
    "fields": {
      "summary": "create test",
      "project": {
        "key": "PROJECTKEY"
      },
      "issuetype": {
        "name": "Task"
      }
    }
  }
  ```

* **HTTP headers**
  * Key: Content-Type, Value: application/json
  * Key: Authorization, Value: Your username and API token (as explained below)

**Note on username API token** To call the REST API, you need to create an API token for the user you want to use for the create call. Please follow [the docs](https://support.atlassian.com/atlassian-account/docs/manage-api-tokens-for-your-atlassian-account/) to do so.  
You then need to encode your mail address with the API token, e.g. **mail@example.com:APITOKEN** with Base64, e.g. using [this online tool](https://www.base64encode.org/de/). Then you can use that Base64 encoded content in the authorization header, adding "Basic" before, e.g. "Basic asdf234".  
Hope that gets you started with your web request.  
Cheers,  
Matthias.

comments: author: Andr? Felipe Rodrigues Lopes
body: Thank you [@Matthias Gaiser _K15t_](/t5/user/viewprofilepage/user-id/853318)   

Dude, your answer was so complete that it even helped me with things I hadn't asked about, lol


author: Hans Polder
body: [@Andr? Felipe Rodrigues Lopes](/t5/user/viewprofilepage/user-id/4734299) ,

Sending a web request should be the way to go and should work.

Can you share some screenshots of the automation rule you have configured so far, especially the web request configuration itself?


author: Andr? Felipe Rodrigues Lopes
body: [@Matthias Gaiser _K15t_](/t5/user/viewprofilepage/user-id/853318)   

If I want to link these two issues, would I do it in the request body or in this case just add another action to link the two issues?

comments: author: Matthias Gaiser _K15t_
body: If you want to link the issues, you should do another web request to link them. Since this is across Jira instances, you should use the remotelink API for it [as documented here](https://developer.atlassian.com/server/jira/platform/jira-rest-api-for-remote-issue-links/).

Please note that you need an application link between the instances for that to work.

**PS** : If you want to go further and also keep the issues in sync, you can of course extend your automation actions even further. If you find that too cumbersome, you might also want to check out an [issue sync app](https://marketplace.atlassian.com/search?query=issue%20sync) from the Atlassian Marketplace. I'm part of the team behind [Backbone Issue Sync](https://marketplace.atlassian.com/apps/1215199/backbone-issue-sync-for-jira?hosting=cloud&tab=overview) and also happy to answer any questions in this regard.


Tags: jira-cloud