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?
Hey @André Felipe Rodrigues Lopes
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 of the other instance. Here are some simple details you can use:
{
"fields": {
"summary": "create test",
"project": {
"key": "PROJECTKEY"
},
"issuetype": {
"name": "Task"
}
}
}
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 to do so.
Thank you @Matthias Gaiser _K15t_
Dude, your answer was so complete that it even helped me with things I hadn't asked about, lol
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@André Felipe Rodrigues Lopes ,
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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Matthias Gaiser _K15t_
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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
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 from the Atlassian Marketplace. I'm part of the team behind Backbone Issue Sync and also happy to answer any questions in this regard.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.