The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

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 Champions.
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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

1 vote
Answer accepted
Hana Kučerová
Community Champion
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 Champions.
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 Champion
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 Champions.
November 8, 2022

Thanks @Hana Kučerová