Forums

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

How to make REST api call from groovy script to copy issue details to some other tool ?

Vinay February 17, 2022

Hello All

 

I have requirement in which i need to copy details of issue to some other tool ( Peoplsoft) to create a CR there.

I need guidance or any scripted post function which can work for this.

 

BR//

Vinay

2 answers

0 votes
Radek Dostál
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.
February 17, 2022

That depends, how should this work, how should it be implemented, are we talking about a job or event listener, a post-function, etc. What kind of data Peoplsoft accepts, the content type, is there any authentication, do you require to do any data mapping (ids)? Would a simple webhook containing issue data work, does Peoplsoft have any webhook processors. Does the created CR require to be updated if issue is updated.

Anybody can send you the first example of a POST w/ groovy, but that's about it. It sounds to me that you have a requirement, but have not thought about what or how to do it. I mean this could be a primitive webhook or a full fledged integration, we don't know.

Vinay February 17, 2022

@Radek Dostál 

Thanks for stepping in.

Just to brief, this should be a scripted post function in the Transition  which will pull data from issue through Rest API and Post data into other tool to create CR with exact field values in JIRA issue.

 

Any suggestion most welcome.

Radek Dostál
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.
February 18, 2022
Vinay August 18, 2022

thanks for this

0 votes
Cem Ortabas
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 17, 2022

@Vinay 

Sorry, posted wrongly

Vinay August 18, 2022

no problem

Suggest an answer

Log in or Sign up to answer