Forums

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

What is the best way to pull REST data from an external system and create a new issue in JIRA ?

vs_krishnan May 21, 2020

My use case is  as follows -

 

1.  Pull in some information thru REST. (Have achieved this by using the curl command in a groovy script within ScriptRunner).

2  Parse this information and iterate thru multiple records and do the following -

              a. move select information to specific custom fields

               b. create a new issue in the RA project - 

( Have achieved this by a groovy parse function and then calling the ScriptRunner provided create issue function ). 


I have been currently doing this using ScriptRunner ,  within a scripted field to test this functionality end to end.

A few questions on this .

1. is there some way  to trigger the above use case based on some sort of  refresh key/event?

2. Where should this script be ideally located ? (instead of using it within a custom scripted field).

Thanks for any pointers on this .

2 answers

0 votes
vs_krishnan May 21, 2020

Thanks . I tried to look for ScriptRunner services .

Checked Admin → Services.

It shows Add Service but no clickable option to add a service .  Need to check this. 

0 votes
Aron Gombas _Midori_
Community Champion
May 21, 2020

If you have a working prototype built with ScriptRunner, then use ScriptRunner services to execute your script!

These are triggered periodically, and of course, your script will not be tied to a custom field (which is conceptually broken).

Suggest an answer

Log in or Sign up to answer