consult with script runner between Jiras

Eduard Diez
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.
November 7, 2022

Hi community!

 

I have two instances of JIRA and only in one of them I have ScriptRunner, in the other one I don't, and I would like to know if I can make code between the two JIRAs.

Thanks

1 answer

1 accepted

1 vote
Answer accepted
Hana Kučerová
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
November 7, 2022

Hi @Eduard Diez ,

what exactly do you mean by “make code between two Jiras”? What is your use case and what are you trying to achieve? Thank you.

Eduard Diez
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.
November 7, 2022

Is fon consultan only, 

 

def issueKey = 'TP-1'

def result = get('otherjira.atlassian.net/rest/api/2/issue/' + issueKey)
.header('Content-Type', 'application/json')
.asObject(Map)
if (result.status == 200){
return result.body.fields
} else {
return "Failed to find issue: Status: ${result.status} ${result.body}"
}

thanks @Hana Kučerová 

Hana Kučerová
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
November 7, 2022

Thank you.

So, you want to get issue information (using GET request to Jira REST API).

Then the answer is no, you don’t need SR installed on the second instance.

Like Eduard Diez likes this
Eduard Diez
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.
November 8, 2022

Thanks @Hana Kučerová 

Suggest an answer

Log in or Sign up to answer