Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Power Scripts for Jira : How to update tickets on a remote JIRA server?

Christophe Floquet June 8, 2020

Hello,

I've two JIRA servers A & B connected through an Application Link, so we are able to link tickets on the two servers.

Is it possible with Power Scripts for JIRA running on server A to perform operations on tickets on server B using the link between tickets on the two servers, for example :

- Update fields

- Transition a ticket

- Create a ticket

 

Thanks.

Regards,

Christophe

1 answer

0 votes
Alexey Matveev
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 8, 2020

Hello @Christophe Floquet ,

There are two ways to accomplish it:

1. User SIL http routines to call Jira Rest API to create, transition and update issues.

You can find more information on http routines here.

2. The better way would be to use Remote Systems.

You can define a Remote System in your source Jira instance for the remote Jira instance where you want to create, update or transition issues. Then you would create SIL scripts in the remote Jira instance to create, update and transition issues and then you would call these scripts using the SIL call routine.

This way is much better because:

- you do not save passwords in source code

- instead of using Jira Rest API you can use SIL routines which is much simpler

- you can pass parameters to the SIL scripts from the source Jira instance. For example, the user under whom to create issues, the values of the updated issue and so on.

I made a detailed example on Remote Systems in my blog:

https://matveev.life/2020/05/25/use-sil-to-the-maximum/

Please, go to the Remote Systems part.

Suggest an answer

Log in or Sign up to answer