How to set values for a Custom Field list as per an external data source ( JSON ) ?

Simon Couderc July 10, 2017

Hello, 

 

( I am very new to JIRA admin ) 

 

The idea of what I would like to do is the following : 

- I have a list of values ( customers ) in an external app that I can acces through JSON

- I would like these values to autocomplete a field in JIRA Service desk ( Cloud ) + that to be in real time : as soon as a customer is added, it appears in the autocompletion. 

 

I have installed scriptRunner, but seriously lacking of practice with it.

 

Thanks for your help ! 

Simon 

1 answer

0 votes
Daniel Yelamos [Adaptavist]
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.
July 25, 2017

Hi Simon.

Yes this is possible. You would call your rest endpoint using something like what I recently answered in this question.

After that, in the response.success clause, you would load the JSON into a map with a JSON slurper, and then load it on the field as a list or a select, I suppose.

There is quite a lot of documentation on how to go about this, it isn't trivial, but it isn't very hard either.

If you have more questions let us know.

Cheers!

Dyelamos

Suggest an answer

Log in or Sign up to answer